Skip to content

Commit

Permalink
fix: push the image
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Sep 20, 2024
1 parent 4930022 commit db0c063
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,16 @@ jobs:
echo "FULL_NAMES=${full_names}" >> $GITHUB_OUTPUT
echo "github.ref = ${{ github.ref }}"
echo "DOCKER_PUSH=true" >> $GITHUB_OUTPUT
# Set push if branch is main
if [ "${{ github.ref }}" == 'refs/heads/main' ]; then
echo "DOCKER_PUSH=true" >> $GITHUB_OUTPUT
echo "DOCKER_PUSH = true"
else
echo "DOCKER_PUSH=false" >> $GITHUB_OUTPUT
echo "DOCKER_PUSH = false"
fi
# if [ "${{ github.ref }}" == 'refs/heads/main' ]; then
# echo "DOCKER_PUSH=true" >> $GITHUB_OUTPUT
# echo "DOCKER_PUSH = true"
# else
# echo "DOCKER_PUSH=false" >> $GITHUB_OUTPUT
# echo "DOCKER_PUSH = false"
# fi
echo "SBOM_OUTPUT_FILENAME=$GITHUB_WORKSPACE/sbom.json" >> $GITHUB_OUTPUT
- name: Build and push image 🏗
Expand Down

0 comments on commit db0c063

Please sign in to comment.