Skip to content

Commit

Permalink
Addition of GitHub Actions workflow (#189)
Browse files Browse the repository at this point in the history
* added github actions workflow for building and pushing docker image to dockerhub on release

* changed workflow to actually build and push to dockerhub
  • Loading branch information
v1km4n authored Apr 29, 2024
1 parent 079cd01 commit aab75d3
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:

jobs:
push-docker-image:
env:
docker_repo: simploka/neue
runs-on: ubuntu-latest
steps:
- name: check repository
Expand All @@ -17,13 +19,10 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: test github actions variable
run: echo "${{ github.event.release.tag_name }}"

# - name: build and push docker image to registry
# uses: docker/build-push-action@v5
# with:
# push: true
# tags: |
# simploka/neue:latest
# simploka/neue:${{ github.event.release.tag_name }}
- name: build and push docker image to registry
uses: docker/build-push-action@v5
with:
push: true
tags: |
${{ docker_repo }}:${{ github.event.release.tag_name }}
${{ docker_repo }}:latest

0 comments on commit aab75d3

Please sign in to comment.