From 195beaf60c7d245a679b80e1294efb45a787fe55 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Thu, 7 Dec 2023 14:17:11 +0800 Subject: [PATCH] chore: remove tag-to-release action It is broken and unmaintained. This repository is opinionated, this is part of the opinion. --- .github/workflows/tag-to-release.yaml | 75 --------------------------- 1 file changed, 75 deletions(-) delete mode 100644 .github/workflows/tag-to-release.yaml diff --git a/.github/workflows/tag-to-release.yaml b/.github/workflows/tag-to-release.yaml deleted file mode 100644 index 1bae534..0000000 --- a/.github/workflows/tag-to-release.yaml +++ /dev/null @@ -1,75 +0,0 @@ -name: Tag to Release -on: - push: - tags: - - v* -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v4 - with: - go-version: stable - - name: Set up environment - run: echo "GOVERSION=$(go version)" >> "$GITHUB_ENV" - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 - with: - version: latest - args: release --clean - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Tar up binaries - run: tar -cvf dist.tar dist - - name: Upload binaries tar file - uses: actions/upload-artifact@v3 - with: - name: dist.tar - path: dist.tar - releaseimage: - permissions: - packages: write - strategy: - matrix: - binary: - - go-cli-github - needs: - - tag - - release - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download binaries tar file - uses: actions/download-artifact@v3 - with: - name: dist.tar - - name: Untar binaries - run: tar -xvf dist.tar - - name: Login to GHCR - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Docker metadata - # this id is namespaced per matrix run - id: docker_metadata - uses: docker/metadata-action@v5 - with: - images: ghcr.io/${{ github.repository }}/${{ matrix.binary }} - tags: | - ${{ needs.tag.outputs.new-tag-version }} - latest - - name: Build and push ${{ matrix.binary }} container image - id: docker_build - uses: docker/build-push-action@v5 - with: - push: true - tags: ${{ steps.docker_metadata.outputs.tags }} - labels: ${{ steps.docker_metadata.outputs.labels }} - file: deploy/${{ matrix.binary }}/Dockerfile - context: dist/${{ matrix.binary }}_linux_amd64_v1