Skip to content

Commit

Permalink
fix: default latest
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Jan 18, 2025
1 parent c0fabd2 commit 18360ab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ jobs:
- name: Prepare
id: prepare
run: |
tag_name=$(bash ./scripts/resolve-tag-image.sh "${{ inputs.push_image }}" "${{ steps.check_tag.outputs.isTag }}" "${{ inputs.push_image_tag }}")
tag_name=$(bash ./scripts/resolve-tag-image.sh "${{ inputs.push_image }}" "${{ steps.check_tag.outputs.isTag }}" "${{ inputs.push_image_tag }}")
echo old_docker_repo=ghcr.io/labring/sealos-${{ env.MODULE_NAME }}-frontend >> $GITHUB_OUTPUT
echo old_docker_image=ghcr.io/labring/sealos-${{ env.MODULE_NAME }}-frontend:latest >> $GITHUB_OUTPUT
echo new_docker_repo=ghcr.io/${{ github.repository_owner }}/sealos-${{ env.MODULE_NAME }}-frontend >> $GITHUB_OUTPUT
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/frontends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ on:
- "!**/*.md"
- "!**/*.yaml"

env:
# Common versions
GO_VERSION: "1.20"
DEFAULT_OWNER: "labring"

jobs:
save-sealos:
uses: ./.github/workflows/import-save-sealos.yml
Expand Down
2 changes: 1 addition & 1 deletion scripts/resolve-tag-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ push_image=${1:-false}
release=${2:-false}

if [[ "$push_image" == true ]]; then
tag_name=${3}
tag_name=${3:-latest}
elif [[ "$release" == true ]]; then
tag_name=${GITHUB_REF#refs/tags/}
fi
Expand Down

0 comments on commit 18360ab

Please sign in to comment.