Skip to content

Commit

Permalink
add action for pushing docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgiakatos committed Jan 7, 2025
1 parent b7de55a commit 3476a43
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Push Docker Image

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build Docker image
run: |
docker build -t internethealthreport/ihr-website:${{ github.ref_name }} .
- name: Push Docker image
run: |
docker push internethealthreport/ihr-website:${{ github.ref_name }}

0 comments on commit 3476a43

Please sign in to comment.