Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/dockerfile-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
with:
context: .
push: true
pull: true
tags: ghcr.io/${{ github.repository }}:main
cache-from: type=gha
cache-to: type=gha,mode=max
10 changes: 9 additions & 1 deletion .github/workflows/dockerfile-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ jobs:
- name: Delete PR image
uses: actions/delete-package-versions@v5
with:
package-name: "zulip/docker-zulip"
package-name: "docker-zulip"
package-type: "container"
token: ${{ secrets.GITHUB_TOKEN }}
tag-name: pr-${{ github.event.pull_request.number }}

- name: Delete untagged images from GHCR
uses: actions/delete-package-versions@v5
with:
package-name: "docker-zulip"
min-versions-to-keep: 0
token: ${{ secrets.GITHUB_TOKEN }}
delete-untagged-versions: true
3 changes: 2 additions & 1 deletion .github/workflows/dockerfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ jobs:
--skip-clean-up

- name: Fetch logs
if: always()
if: steps.list-changed.outputs.changed == 'true' && ( success() || failure() )
continue-on-error: true
run: |
namespace=$(helm list --all-namespaces --output json \
| jq -r '[.[] | select(.namespace | startswith("zulip-"))][0].namespace')
Expand Down
Loading