Skip to content

Commit

Permalink
Fix some syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ga84jog committed Oct 24, 2024
1 parent bfbb089 commit 100aabb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ jobs:
- name: Build and push to local registry
if: |
steps.check_registry.outputs.local_registry == 'true' &&
runner.labels['self-hosted'] == 'true'
runner.environment == 'true'
uses: docker/build-push-action@v6
with:
context: .
Expand All @@ -223,7 +223,7 @@ jobs:
- name: Build and export to tar
if: |
steps.check_registry.outputs.local_registry != 'true' &&
runner.labels['self-hosted'] == 'true'
runner.environment == 'true'
uses: docker/build-push-action@v6
with:
context: .
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
# => 9. Move the cache with -new suffix to original cache
- name: Move cache
if: steps.check_registry.outputs.local_registry == 'true'
if: ${{ steps.check_registry.outputs.local_registry == 'true' }}
run: |
if [ "${{ runner.environment }}" = "self-hosted" ]; then
rm -rf $DOCKER_CACHE_DIR/${{ runner.name }}/.buildx-cache
Expand Down

0 comments on commit 100aabb

Please sign in to comment.