Skip to content

Commit

Permalink
Publish distribution images with digests
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Feb 3, 2024
1 parent 5302457 commit 447d932
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- '*'
- 'e2e-*'
tags-ignore:
- '*'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: index-images
name: Update images

on:
workflow_dispatch:
Expand All @@ -14,7 +14,6 @@ jobs:
permissions:
contents: write
pull-requests: write
packages: read
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand All @@ -23,7 +22,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GHCR_READONLY }}
- name: Setup Flux
uses: fluxcd/flux2/action@5c5c15ea212b8f029a110f9975851d25c8272695 #v2.2.2
- name: Write image files
Expand All @@ -34,17 +33,17 @@ jobs:
REGISTRY: ghcr.io/controlplaneio-fluxcd
run: |
VERSION=$(gh release view --json tagName -q '.tagName')
echo "version=${VERSION}" >> $GITHUB_ENV
echo "version=${VERSION}" >> $GITHUB_OUTPUT
VARIANT="alpine" \
REGISTRY="${REGISTRY}" \
VERSION="${VERSION}" \
./workflows/index-images.sh
.github/workflows/index-images.sh
VARIANT="distroless" \
REGISTRY="${REGISTRY}" \
VERSION="${VERSION}" \
./workflows/index-images.sh
.github/workflows/index-images.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
with:
Expand Down

0 comments on commit 447d932

Please sign in to comment.