diff --git a/.github/workflows/go-releaser.yaml b/.github/workflows/go-releaser.yaml index cb6d8eb..648c58c 100644 --- a/.github/workflows/go-releaser.yaml +++ b/.github/workflows/go-releaser.yaml @@ -34,58 +34,58 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Auth-Check: - # runs-on: ubuntu-latest - # steps: - # - name: Check out code into the Go module directory - # uses: actions/checkout@v2 - # with: - # fetch-depth: 0 + Auth-Check: + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + with: + fetch-depth: 0 - # - name: Set up Go - # uses: actions/setup-go@v2 - # with: - # go-version: 1.19 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.19 - # - name: Login to DockerHub - # uses: docker/login-action@v2 - # with: - # username: ${{ secrets.DOCKER_USERNAME }} - # password: ${{ secrets.DOCKER_TOKEN }} + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} - # - name: Run GoReleaser for Auth Check - # uses: goreleaser/goreleaser-action@v3 - # if: success() && startsWith(github.ref, 'refs/tags/') - # with: - # version: latest - # args: release -f auth-check/.goreleaser.yaml --rm-dist - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Run GoReleaser for Auth Check + uses: goreleaser/goreleaser-action@v3 + if: success() && startsWith(github.ref, 'refs/tags/') + with: + version: latest + args: release -f auth-check/.goreleaser.yaml --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Close-PR: - # runs-on: ubuntu-latest - # steps: - # - name: Check out code into the Go module directory - # uses: actions/checkout@v2 - # with: - # fetch-depth: 0 + Close-PR: + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + with: + fetch-depth: 0 - # - name: Set up Go - # uses: actions/setup-go@v2 - # with: - # go-version: 1.19 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.19 - # - name: Login to DockerHub - # uses: docker/login-action@v2 - # with: - # username: ${{ secrets.DOCKER_USERNAME }} - # password: ${{ secrets.DOCKER_TOKEN }} + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} - # - name: Run GoReleaser for Close Pull Request - # uses: goreleaser/goreleaser-action@v3 - # if: success() && startsWith(github.ref, 'refs/tags/') - # with: - # version: latest - # args: release -f close-pr/.goreleaser.yaml --rm-dist - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Run GoReleaser for Close Pull Request + uses: goreleaser/goreleaser-action@v3 + if: success() && startsWith(github.ref, 'refs/tags/') + with: + version: latest + args: release -f close-pr/.goreleaser.yaml --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/assignee/.goreleaser.yaml b/assignee/.goreleaser.yaml index 8ed0446..998fe04 100644 --- a/assignee/.goreleaser.yaml +++ b/assignee/.goreleaser.yaml @@ -32,6 +32,6 @@ dockers: - ids: - "assignee" - image_templates: [ "jackstock8904/{{ .Env.ID }}:{{ .Tag}}", "jackstock8904/{{ .ENV.ID }}:{{ .Version}}" ] + image_templates: [ "jackstock8904/{{ .Env.ID }}:{{ .Tag}}", "jackstock8904/{{ .Env.ID }}:{{ .Version}}" ] dockerfile: '{{ .Env.DOCKERFILE }}' use: buildx diff --git a/auth-check/.goreleaser.yaml b/auth-check/.goreleaser.yaml index d804633..7e79ba6 100644 --- a/auth-check/.goreleaser.yaml +++ b/auth-check/.goreleaser.yaml @@ -30,6 +30,6 @@ changelog: - Merge branch - go mod tidy dockers: -- image_templates: [ "jackstock8904/{{ .Env.ID }}:{{ .Tag}}", "jackstock8904/{{ .ENV.ID }}:{{ .Version}}" ] +- image_templates: [ "jackstock8904/{{ .Env.ID }}:{{ .Tag}}", "jackstock8904/{{ .Env.ID }}:{{ .Version}}" ] dockerfile: '{{ .Env.DOCKERFILE }}' use: buildx \ No newline at end of file diff --git a/close-pr/.goreleaser.yaml b/close-pr/.goreleaser.yaml index fef313d..05f9b54 100644 --- a/close-pr/.goreleaser.yaml +++ b/close-pr/.goreleaser.yaml @@ -32,6 +32,6 @@ dockers: - ids: - "close-pr" - image_templates: [ "jackstock8904/{{ .Env.ID }}:{{ .Tag}}", "jackstock8904/{{ .ENV.ID }}:{{ .Version}}" ] + image_templates: [ "jackstock8904/{{ .Env.ID }}:{{ .Tag}}", "jackstock8904/{{ .Env.ID }}:{{ .Version}}" ] dockerfile: '{{ .Env.DOCKERFILE }}' use: buildx