Skip to content

Commit

Permalink
fix forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Aug 16, 2024
1 parent 570894f commit 9862708
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/cd-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:

- name: Set vars
id: vars
run: echo "sha_short=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV >> $GITHUB_OUTPUT
run: |
echo "sha_short=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
echo "sha_short=${{ env.sha_short }}" >> $GITHUB_OUTPUT
- name: Build Image with Tag
run: |
Expand All @@ -48,7 +50,9 @@ jobs:

- name: Set vars
id: vars
run: echo "sha_short=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV >> $GITHUB_OUTPUT
run: |
echo "sha_short=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
echo "sha_short=${{ env.sha_short }}" >> $GITHUB_OUTPUT
- name: Build Image with Tag
run: |
Expand All @@ -70,7 +74,9 @@ jobs:

steps:
- name: Receive and Forward sha_short
run: echo "sha_short=${{ needs.build-backend.outputs.sha_short }}" >> $GITHUB_ENV >> $GITHUB_OUTPUT
run: |
echo "sha_short=${{ needs.build-backend.outputs.sha_short }}" >> $GITHUB_ENV
echo "sha_short=${{ env.sha_short }}" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -95,7 +101,9 @@ jobs:

steps:
- name: Receive and Forward sha_short
run: echo "sha_short=${{ needs.build-frontend.outputs.sha_short }}" >> $GITHUB_ENV >> $GITHUB_OUTPUT
run: |
echo "sha_short=${{ needs.build-frontend.outputs.sha_short }}" >> $GITHUB_ENV
echo "sha_short=${{ env.sha_short }}" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down

0 comments on commit 9862708

Please sign in to comment.