Skip to content

Commit

Permalink
Merge pull request #28 from oislen/dev
Browse files Browse the repository at this point in the history
#26 create github actions workflow for pushing image to docker hub
  • Loading branch information
oislen authored Oct 15, 2024
2 parents 8f0cda9 + d04e5b1 commit ea8787c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dockerhub-main-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: DockerHub Main Push

on:
workflow_run:
workflows: ["Unittest Main Push"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: oislen/irishclimatedashboard:latest
build-args: GIT_BRANCH=main

0 comments on commit ea8787c

Please sign in to comment.