Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyongtao committed Apr 9, 2024
1 parent 40348c7 commit a2a2a3a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
check_tag_exist:
check-if-buildable:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -40,15 +40,15 @@ jobs:
echo "skip_flag=true" >> $GITHUB_OUTPUT
fi
# 将 tag 名称存储到 GITHUB_OUTPUT
echo "UPSTREAM_TAG=$latest_tag_name" >> $GITHUB_OUTPUT
echo "upstream_tag=$latest_tag_name" >> $GITHUB_OUTPUT
id: check_tag_exist
outputs:
skip_flag: ${{ steps.check_tag_exist.outputs.skip_flag }}
UPSTREAM_TAG: ${{ steps.check_tag_exist.outputs.UPSTREAM_TAG }}
upstream_tag: ${{ steps.check_tag_exist.outputs.upstream_tag }}

build-and-push:
runs-on: ubuntu-latest
needs: check_tag_exist
needs: check-if-buildable
if : ${{ needs.check_tag_exist.outputs.skip_flag != 'true' }}
steps:
- name: Checkout code at upstream tag
Expand Down Expand Up @@ -78,9 +78,9 @@ jobs:
platforms: linux/amd64,linux/arm64/v8 # 根据需要调整目标架构
push: true
build-args: |
UPSTREAM_TAG=${{ needs.check_tag_exist.outputs.UPSTREAM_TAG }}
upstream_tag=${{ needs.check_tag_exist.outputs.upstream_tag }}
tags: |
zhengyongtao/nsz:${{ needs.check_tag_exist.outputs.UPSTREAM_TAG }}
zhengyongtao/nsz:${{ needs.check_tag_exist.outputs.upstream_tag }}
zhengyongtao/nsz:latest
- name: Image digest
Expand Down

0 comments on commit a2a2a3a

Please sign in to comment.