Skip to content

Commit

Permalink
Fix steps id in GithubActions Docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed Dec 10, 2021
1 parent d472632 commit f842f51
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,25 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and export to Docker
id: build-test
uses: docker/build-push-action@v2
with:
file: docker/Dockerfile
load: true
tags: ${{ env.TEST_TAG }}
labels: ${{ steps.docker_meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
- name: Test
id: test
run: |
ver=$(docker run --rm ${{ env.TEST_TAG }} --version)
[[ "$ver" == "ggsashimi ${github_ref##*/}" ]]
env:
github_ref: ${{ github.ref }}
github_ref: ${{ github.ref }}3
- name: Build and push
id: build
uses: docker/build-push-action@v2
with:
file: docker/Dockerfile
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
run: echo ${{ steps.build.outputs.digest }}

0 comments on commit f842f51

Please sign in to comment.