Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Catalano committed Nov 1, 2021
1 parent 0c5c931 commit a0f477d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,10 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
if: ${{ 'refs/heads/main' == github.ref }}
id: docker_build_push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: "ironpinguin/terraform_http_backend:${{ github.sha }}"
- name: only Build
if: ${{ 'refs/heads/main' != github.ref }}
id: docker_build_only
uses: docker/build-push-action@v2
with:
push: false
push: ${{ 'refs/heads/main' == github.ref }}
tags: "ironpinguin/terraform_http_backend:${{ github.sha }}"


Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,4 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags:
- "ironpinguin/terraform_http_backend:${{ github.sha }}"
- "ironpinguin/terraform_http_backend:${{ steps.get_version.outputs.VERSION }}"
tags: "ironpinguin/terraform_http_backend:${{ github.sha }},ironpinguin/terraform_http_backend:${{ steps.get_version.outputs.VERSION }}"

0 comments on commit a0f477d

Please sign in to comment.