Skip to content

Commit

Permalink
Merge pull request #10 from matzegebbe/fix/dockerReleaseToFlow
Browse files Browse the repository at this point in the history
ci: move docker to release flow
  • Loading branch information
matzegebbe authored Aug 19, 2023
2 parents f7ad643 + 6d2101a commit 03b53f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4

- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
Expand All @@ -31,3 +24,17 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${GITHUB_REF#refs/tags/}
9 changes: 0 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,3 @@ archives:
release:
draft: false
prerelease: false

dockers:
- image_templates:
- "ghcr.io/matzegebbe/web-jwks-validator:latest"
- "ghcr.io/matzegebbe/web-jwks-validator:{{ .Version }}"
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.version={{.Version}}"

0 comments on commit 03b53f4

Please sign in to comment.