terraform-provider-edge-con.../.github/workflows/release.yaml
Martin McCaffery 9afa2ff13b
Some checks failed
test / test (push) Successful in 19s
ci / goreleaser (push) Failing after 25s
workflow: generate provider.json, upload to terralist
2025-11-19 10:50:39 +01:00

44 lines
No EOL
1.3 KiB
YAML

name: ci
on:
push:
tags:
- v*
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ">=1.25.1"
- name: Test code
run: make test
- name: Import GPG key
id: import_gpg
uses: https://github.com/crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Run GoReleaser
id: goreleaser
uses: https://github.com/goreleaser/goreleaser-action@v6
env:
GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
with:
args: release --clean
- name: Generate and upload provider.json
run: |
echo '${{steps.goreleaser.outputs.artifacts}}' >artifacts.json
echo '${{steps.goreleaser.outputs.metadata}}' >metadata.json
./provider.json.sh artifacts.json metadata.json
env:
TERRALIST_API: https://terralist.garm-provider-test.t09.de/v1/api
TERRALIST_API_KEY: ${{ secrets.TERRALIST_API_KEY }}