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
8 changes: 8 additions & 0 deletions .gitea/workflows/build-harbor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
run: |
echo "$DH_TOKEN" | podman login docker.io --username "$DH_USER" --password-stdin

- name: Extract version
id: version
run: |
VERSION=$(node -e "console.log(require('./package.json').version)")
echo "version=v$VERSION" >> "$GITHUB_OUTPUT"

- name: Build multi-arch manifest locally
env:
LOCAL_MANIFEST: localhost/fail2ban-ui:${{ github.sha }}
Expand All @@ -52,6 +58,7 @@ jobs:
run: |
DEST="docker://$REG/$PROJ/fail2ban-ui"
podman manifest push --all "$LOCAL_MANIFEST" "$DEST:${{ github.sha }}"
podman manifest push --all "$LOCAL_MANIFEST" "$DEST:${{ steps.version.outputs.version }}"
podman manifest push --all "$LOCAL_MANIFEST" "$DEST:latest"

- name: Push to Docker Hub
Expand All @@ -63,4 +70,5 @@ jobs:
run: |
DEST="docker://docker.io/$DH_NS/$DH_REPO"
podman manifest push --all "$LOCAL_MANIFEST" "$DEST:${{ github.sha }}"
podman manifest push --all "$LOCAL_MANIFEST" "$DEST:${{ steps.version.outputs.version }}"
podman manifest push --all "$LOCAL_MANIFEST" "$DEST:latest"