🧹 Retry login command when concurrent IAM updates are detected (#3151) #1527
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: goreleaser edge containers | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
env: | |
REGISTRY: docker.io | |
jobs: | |
goreleaser: | |
permissions: | |
# Add "contents" to write release | |
contents: 'write' | |
# Add "id-token" for google-github-actions/auth | |
id-token: 'write' | |
runs-on: self-hosted | |
timeout-minutes: 120 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Import environment variables from file | |
run: cat ".github/env" >> $GITHUB_ENV | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ">=${{ env.golang-version }}" | |
cache: false | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Locally tag the current commit | |
run: | | |
VERSION=$(make version) | |
git tag ${VERSION/\+/-} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release -f .github/.goreleaser-edge.yml --clean --timeout 120m | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NFPM_DEFAULT_RPM_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |