Skip to content
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
20 changes: 11 additions & 9 deletions .github/workflows/docker-branch-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
-t "$UPDATER_IMAGE:$TAG" \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--cache-from "$BASE_IMAGE" \
--cache-from "$UPDATER_IMAGE:latest" \
--cache-from "$UPDATER_IMAGE_MIRROR" \
--build-arg OMNIBUS_VERSION=$TAG \
-f Dockerfile.updater \
.
Expand All @@ -56,13 +56,15 @@ jobs:
run: |
docker tag "$UPDATER_IMAGE:$TAG" "$UPDATER_IMAGE_MIRROR:$TAG"
docker push "$UPDATER_IMAGE_MIRROR:$TAG"
- name: Save tagged image
- name: Push latest on main
if: github.ref == 'refs/heads/master'
continue-on-error: true
run: |
docker save "$UPDATER_IMAGE:$TAG" > dependabot-updater.tar
- name: Archive image
uses: actions/upload-artifact@v3
with:
name: updater-${{ github.sha }}.tar
path: dependabot-updater.tar
docker tag "$UPDATER_IMAGE:$TAG" "$UPDATER_IMAGE_MIRROR:latest"
docker push "$UPDATER_IMAGE_MIRROR:latest"
- name: Set summary
run: echo "updater uploaded \`ghcr.io/dependabot/dependabot-updater/dependabot-updater:$TAG\`" >> $GITHUB_STEP_SUMMARY
run: |
echo "updater uploaded with tag \`$TAG\`" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "$UPDATER_IMAGE_MIRROR:$TAG" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY