go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/.github/workflows/goreleaser-edge.yml (about) 1 name: goreleaser edge containers 2 3 on: 4 push: 5 branches: 6 - 'main' 7 workflow_dispatch: 8 9 env: 10 REGISTRY: docker.io 11 12 jobs: 13 goreleaser: 14 permissions: 15 # Add "contents" to write release 16 contents: 'write' 17 # Add "id-token" for google-github-actions/auth 18 id-token: 'write' 19 20 runs-on: self-hosted 21 timeout-minutes: 120 22 steps: 23 - name: Checkout 24 uses: actions/checkout@v4 25 with: 26 fetch-depth: 0 27 28 - name: Set up Go 29 uses: actions/setup-go@v4 30 with: 31 go-version: ">=1.21.0" 32 cache: false 33 34 - name: Log in to the Container registry 35 uses: docker/login-action@v3 36 with: 37 registry: ${{ env.REGISTRY }} 38 username: ${{ secrets.DOCKER_USERNAME }} 39 password: ${{ secrets.DOCKER_PASSWORD }} 40 41 - name: Locally tag the current commit 42 run: | 43 VERSION=$(make version) 44 git tag ${VERSION/\+/-} 45 46 - name: Run GoReleaser 47 uses: goreleaser/goreleaser-action@v4 48 with: 49 distribution: goreleaser 50 version: latest 51 args: release -f .github/.goreleaser-edge.yml --clean --timeout 120m 52 env: 53 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 54 NFPM_DEFAULT_RPM_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}