Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add builds and push for go images #25

Merged
merged 1 commit into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 48 additions & 48 deletions .github/workflows/go-releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
- 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 }}
2 changes: 1 addition & 1 deletion assignee/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion auth-check/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion close-pr/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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