diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2f5715d..6a8fa86 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,7 +8,6 @@ permissions: contents: read env: REGISTRY: ghcr.io - DOCKERFILE: ${{ github.workspace }}/goreleaser.dockerfile jobs: release: @@ -36,15 +35,17 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push + uses: docker/build-push-action@v5 + with: + tags: ghcr.io/external-secrets/bitwarden-sdk-server:${{ steps.prep.outputs.VERSION }} + push: true - name: Install Helm uses: azure/setup-helm@v4 - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 - with: - version: latest - args: release --release-notes=docs/release_notes/${{ steps.prep.outputs.VERSION }}.md --skip-validate - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build and release the helm charts run: | helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml deleted file mode 100644 index c9be7c4..0000000 --- a/.goreleaser.yaml +++ /dev/null @@ -1,32 +0,0 @@ -# This is an example .goreleaser.yml file with some sensible defaults. -# Make sure to check the documentation at https://goreleaser.com -archives: - - name_template: >- - {{ .ProjectName }}_ - {{- title .Os }}_ - {{- if eq .Arch "amd64" }}x86_64 - {{- else if eq .Arch "386" }}i386 - {{- else }}{{ .Arch }}{{ end }} -checksum: - name_template: 'checksums.txt' -snapshot: - name_template: "{{ incpatch .Version }}-next" -changelog: - sort: asc - filters: - exclude: - - '^docs:' - - '^test:' -# for more information on what this target does: https://goreleaser.com/errors/docker-build/ -dockers: - - id: linux-build - image_templates: - - "{{ .Env.REGISTRY }}/external-secrets/bitwarden-sdk-server:{{ .Tag }}" - - "{{ .Env.REGISTRY }}/external-secrets/bitwarden-sdk-server:latest" - # GOOS of the built binary that should be used. - goos: linux - # GOARCH of the built binary that should be used. - goarch: amd64 - dockerfile: Dockerfile - build_flag_templates: - - "--platform=linux/amd64"