From 61f0d133962bbec0a4bb680ead05f8e773a965f2 Mon Sep 17 00:00:00 2001 From: Eric Warehime Date: Fri, 23 Jun 2023 07:15:04 -0700 Subject: [PATCH] Initial commit of release (#1553) (#1556) --- .github/workflows/goreleaser.yml | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/goreleaser.yml diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 000000000..9449eb9a8 --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,43 @@ +name: goreleaser + +on: + push: + tags: + - 'v3.**' + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.5.3 + with: + fetch-depth: 0 + - run: git fetch --force --tags + + - name: go dependency + uses: actions/setup-go@v4.0.1 + with: + go-version-file: 'go.mod' + + - name: Setup QEMU (docker multi-arch dependency) + uses: docker/setup-qemu-action@v2 + + - name: Setup Docker Buildx (docker multi-arch dependency) + uses: docker/setup-buildx-action@v2 + + - name: dockerhub-login + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - uses: goreleaser/goreleaser-action@v4 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}