Skip to content

Commit

Permalink
chore: update docker image release
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Nov 1, 2023
1 parent 48f97c0 commit 9265ed2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 27 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: kcllang/kcl
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand Down
27 changes: 0 additions & 27 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,33 +31,6 @@ archives:
- goos: windows
format: zip

dockers:
- use: buildx
goos: linux
goarch: amd64
dockerfile: Dockerfile
image_templates:
- kcllang/kcl:{{ .Tag }}
build_flag_templates:
- "--target=goreleaser"
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"

docker_manifests:
- use: docker
name_template: kcllang/kcl:{{ .Tag }}
image_templates:
- kcllang/kcl:{{ .Tag }}-amd64
- use: docker
name_template: kcllang/kcl:latest
image_templates:
- kcllang/kcl:{{ .Tag }}-amd64

brews:
- tap:
owner: kcl-lang
Expand Down

0 comments on commit 9265ed2

Please sign in to comment.