Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always push dev image #59

Merged
merged 3 commits into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/container_build_child.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,16 @@ jobs:
id: check-image
run: |
echo "exit_code=0" >> $GITHUB_OUTPUT
IFS=',' read -ra image_tags <<< ${{ steps.build-tags.outputs.image_tags }}
for image_tag in "${image_tags[@]}"; do
echo "Checking if ghcr.io/${{ steps.gh_repo.outputs.name_lowcase }}/${{ inputs.container_name }}:$image_tag already exists."
docker manifest inspect ghcr.io/${{ steps.gh_repo.outputs.name_lowcase }}/${{ inputs.container_name }}:$image_tag || echo "exit_code=1" >> $GITHUB_OUTPUT
done
if [ "${{ inputs.container_name }}" == "dev" ]; then
# always rebuild dev image, but check if already exists for other images
echo "exit_code=1" >> $GITHUB_OUTPUT
else
IFS=',' read -ra image_tags <<< ${{ steps.build-tags.outputs.image_tags }}
for image_tag in "${image_tags[@]}"; do
echo "Checking if ghcr.io/${{ steps.gh_repo.outputs.name_lowcase }}/${{ inputs.container_name }}:$image_tag already exists."
docker manifest inspect ghcr.io/${{ steps.gh_repo.outputs.name_lowcase }}/${{ inputs.container_name }}:$image_tag || echo "exit_code=1" >> $GITHUB_OUTPUT
done
fi

- name: Pre-build dev container image 🔨
uses: devcontainers/[email protected]
Expand Down
Loading