From 42e9b0bd4ebd5e1626daced7c43098791ac3cb9d Mon Sep 17 00:00:00 2001 From: Marc Sauter Date: Wed, 9 Mar 2022 21:31:08 +0100 Subject: [PATCH] chore: actions --- .github/workflows/build.yml | 24 ----------- .goreleaser-feature.yml | 79 ------------------------------------- 2 files changed, 103 deletions(-) delete mode 100644 .goreleaser-feature.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2b9256..c039acb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,27 +81,3 @@ jobs: args: release --rm-dist --snapshot env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build-branch: - if: github.ref == 'refs/heads/feature' - needs: - - lint - - test - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.17 - stable: true - - name: GoReleaser - uses: goreleaser/goreleaser-action@v2 - with: - version: latest - args: release --rm-dist -f .goreleaser-feature.yml - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - diff --git a/.goreleaser-feature.yml b/.goreleaser-feature.yml deleted file mode 100644 index 8c09f6f..0000000 --- a/.goreleaser-feature.yml +++ /dev/null @@ -1,79 +0,0 @@ -project_name: vault-kubernetes -release: - github: - owner: postfinance - name: vault-kubernetes -builds: - - id: synchronizer - goos: - - linux - goarch: - - amd64 - main: ./cmd/synchronizer/ - binary: synchronizer - env: - - CGO_ENABLED=0 - - id: authenticator - goos: - - linux - goarch: - - amd64 - main: ./cmd/authenticator/ - binary: authenticator - env: - - CGO_ENABLED=0 - - id: token-renewer - goos: - - linux - goarch: - - amd64 - main: ./cmd/token-renewer/ - binary: token-renewer - env: - - CGO_ENABLED=0 -dockers: - - ids: - - synchronizer - goos: linux - goarch: amd64 - dockerfile: packaging/docker/synchronizer/Dockerfile - image_templates: - - postfinance/{{ .ProjectName }}-synchronizer:feature - build_flag_templates: - - --label=org.opencontainers.image.created={{ .Date }} - - --label=org.opencontainers.image.revision={{ .ShortCommit }} - - --label=org.opencontainers.image.source={{ .GitURL }} - - --label=org.opencontainers.image.url={{ .GitURL }} - - --label=org.opencontainers.image.vendor=PostFinance AG - - --label=org.opencontainers.image.version={{ .Version }} - - --pull - - ids: - - authenticator - goos: linux - goarch: amd64 - dockerfile: packaging/docker/authenticator/Dockerfile - image_templates: - - postfinance/{{ .ProjectName }}-authenticator:feature - build_flag_templates: - - --label=org.opencontainers.image.created={{ .Date }} - - --label=org.opencontainers.image.revision={{ .ShortCommit }} - - --label=org.opencontainers.image.source={{ .GitURL }} - - --label=org.opencontainers.image.url={{ .GitURL }} - - --label=org.opencontainers.image.vendor=PostFinance AG - - --label=org.opencontainers.image.version={{ .Version }} - - --pull - - ids: - - token-renewer - goos: linux - goarch: amd64 - dockerfile: packaging/docker/token-renewer/Dockerfile - image_templates: - - postfinance/{{ .ProjectName }}-token-renewer:feature - build_flag_templates: - - --label=org.opencontainers.image.created={{ .Date }} - - --label=org.opencontainers.image.revision={{ .ShortCommit }} - - --label=org.opencontainers.image.source={{ .GitURL }} - - --label=org.opencontainers.image.url={{ .GitURL }} - - --label=org.opencontainers.image.vendor=PostFinance AG - - --label=org.opencontainers.image.version={{ .Version }} - - --pull