Skip to content

Commit

Permalink
fix rqlite prod image
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Dec 13, 2023
1 parent 8a099ac commit 87e55b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/actions/build-push-image-with-apko/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ inputs:
runs:
using: "composite"
steps:
- id: check-image-exists
shell: bash
run: |
set -euo pipefail
if docker manifest inspect ${{ inputs.image-name }} > /dev/null 2>&1; then
echo "Image already exists. Will not overwrite."
echo "image-exists=true" >> "$GITHUB_OUTPUT"
else
echo "Image does not exist. Will build and push."
echo "image-exists=false" >> "$GITHUB_OUTPUT"
fi
# - id: check-image-exists
# shell: bash
# run: |
# set -euo pipefail
# if docker manifest inspect ${{ inputs.image-name }} > /dev/null 2>&1; then
# echo "Image already exists. Will not overwrite."
# echo "image-exists=true" >> "$GITHUB_OUTPUT"
# else
# echo "Image does not exist. Will build and push."
# echo "image-exists=false" >> "$GITHUB_OUTPUT"
# fi

- uses: chainguard-images/actions/apko-publish@main
if: ${{ steps.check-image-exists.outputs.image-exists == 'false' }}
# if: ${{ steps.check-image-exists.outputs.image-exists == 'false' }}
with:
config: ${{ inputs.apko-config }}
archs: x86_64
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ jobs:
- uses: ./.github/actions/build-push-image-with-apko
with:
apko-config: deploy/rqlite/apko.yaml
image-name: ttl.sh/automated-${{ github.run_id }}/rqlite:${{ steps.dotenv.outputs.RQLITE_TAG }}
image-name: index.docker.io/kotsadm/rqlite:${{ steps.dotenv.outputs.RQLITE_TAG }}
registry-username: ${{ secrets.DOCKERHUB_USER }}
registry-password: ${{ secrets.DOCKERHUB_PASSWORD }}


push-dex:
Expand Down

0 comments on commit 87e55b6

Please sign in to comment.