|
|
|
@ -14,18 +14,18 @@ jobs:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
- name: Unshallow
|
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
|
- name: Setup Go
|
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
|
with:
|
|
|
|
|
go-version: 1.18.x
|
|
|
|
|
- name: Setup QEMU
|
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
|
- name: Setup Docker Buildx
|
|
|
|
|
id: buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
- name: Setup Syft
|
|
|
|
|
uses: anchore/sbom-action/download-syft@v0
|
|
|
|
|
- name: Setup Cosign
|
|
|
|
@ -33,13 +33,13 @@ jobs:
|
|
|
|
|
- name: Setup Kustomize
|
|
|
|
|
uses: fluxcd/pkg//actions/kustomize@main
|
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
|
with:
|
|
|
|
|
registry: ghcr.io
|
|
|
|
|
username: fluxcdbot
|
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
|
with:
|
|
|
|
|
username: fluxcdbot
|
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
|
@ -73,7 +73,7 @@ jobs:
|
|
|
|
|
env:
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
- name: Run GoReleaser
|
|
|
|
|
uses: goreleaser/goreleaser-action@v1
|
|
|
|
|
uses: goreleaser/goreleaser-action@v3
|
|
|
|
|
with:
|
|
|
|
|
version: latest
|
|
|
|
|
args: release --release-notes=output/notes.md --skip-validate
|
|
|
|
|