Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
doosuu committed Sep 20, 2023
1 parent 3ea705a commit 5d0ade4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/sdk-build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ jobs:
id: get-tag
shell: bash
run: |
TAGS=${{ github.sha }}
BASE=${{ steps.github-repository-name-case-adjusted.outputs.lowercase }}/app-builder
TAGS=$BASE:${{ github.sha }}
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
TAGS="${TAGS},latest"
TAGS="${TAGS},$BASE:latest"
fi
echo "tag=${{ github.sha }}" >> $GITHUB_OUTPUT
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
- name: Set container output type
Expand All @@ -86,9 +86,7 @@ jobs:
id: image_build
uses: docker/build-push-action@v3.2.0
with:
imageName: ghcr.io/${{ steps.github-repository-name-case-adjusted.outputs.lowercase }}/app-builder
imageTag: ${{ steps.get-tag.outputs.tags }}
push: true
tags: ${{ steps.get-tag.outputs.tags }}
file: sdk/Dockerfile
platforms: linux/amd64
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 5d0ade4

Please sign in to comment.