Skip to content

Commit

Permalink
[feature-swarm-docker-build] fix sha
Browse files Browse the repository at this point in the history
  • Loading branch information
FR-Solution committed May 3, 2024
1 parent ff976dc commit 7805788
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build-for-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4


- uses: benjlevesque/[email protected]
id: short-sha
with:
length: 8

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -26,28 +31,28 @@ jobs:
context: .
file: ./Dockerfile.goose
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups.goose:${{ github.head_ref || github.ref_name }}-${{ github.sha:0:8 }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups.goose:${{ github.head_ref || github.ref_name }}-${{ steps.short-sha.outputs.sha }}

- name: Build and push sgroups
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.sgroups
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups:${{ github.head_ref || github.ref_name }}-${{ github.sha:0:8 }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups:${{ github.head_ref || github.ref_name }}-${{ steps.short-sha.outputs.sha }}

- name: Build and push terraform
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.terraform
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups.terraform:${{ github.head_ref || github.ref_name }}-${{ github.sha:0:8 }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups.terraform:${{ github.head_ref || github.ref_name }}-${{ steps.short-sha.outputs.sha }}

- name: Build and push to-nft
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.to-nft
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups.to-nft:${{ github.head_ref || github.ref_name }}-${{ github.sha:0:8 }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups.to-nft:${{ github.head_ref || github.ref_name }}-${{ steps.short-sha.outputs.sha }}

0 comments on commit 7805788

Please sign in to comment.