-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update ci to not build container images with goreleaser
- Loading branch information
rayanebel
committed
Jan 8, 2025
1 parent
ec783fe
commit 57781a1
Showing
5 changed files
with
40 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,22 +15,14 @@ env: | |
REGISTRY: oci://ghcr.io/kilnfi/charts | ||
|
||
jobs: | ||
goreleaser: | ||
binaries: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
|
@@ -44,9 +36,40 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
helm-release: | ||
images: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: docker/build-push-action@v6 | ||
name: Build & Push Container Images | ||
with: | ||
context: . | ||
file: Dockerfile | ||
labels: |- | ||
org.opencontainers.image.source=https://github.com/${{ github.repository }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
org.opencontainers.image.name=cardano-validator-watcher" | ||
org.opencontainers.image.version=${{ github.ref_name }}" | ||
[email protected]" | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: |- | ||
ghcr.io/${{ github.repository_owner }}/cardano-validator-watcher:${{ github.ref_name }} | ||
ghcr.io/${{ github.repository_owner }}/cardano-validator-watcher:latest | ||
helm-chart: | ||
if: false | ||
needs: images | ||
runs-on: ubuntu-latest | ||
needs: goreleaser | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,5 @@ testbin/ | |
# Others | ||
**/.DS_Store | ||
*.db* | ||
|
||
.codegpt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ project_name: cardano-validator-watcher | |
before: | ||
hooks: | ||
- go mod tidy | ||
|
||
builds: | ||
- id: cardano-validator-watcher | ||
main: cmd/watcher/main.go | ||
|
@@ -12,54 +11,10 @@ builds: | |
goos: | ||
- linux | ||
- darwin | ||
|
||
archives: | ||
- format: tar.gz | ||
name_template: '{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}' | ||
files: | ||
- none* | ||
|
||
dockers: | ||
- image_templates: | ||
- 'ghcr.io/kilnfi/cardano-validator-watcher:{{ .Tag }}-amd64' | ||
dockerfile: Dockerfile | ||
use: buildx | ||
goos: linux | ||
goarch: amd64 | ||
build_flag_templates: | ||
- "--pull" | ||
- "--build-arg=ARCH=linux/amd64" | ||
- "--platform=linux/amd64" | ||
- "--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 }}" | ||
- "[email protected]" | ||
- image_templates: | ||
- 'ghcr.io/kilnfi/cardano-validator-watcher:{{ .Tag }}-arm64' | ||
dockerfile: Dockerfile | ||
use: buildx | ||
goos: linux | ||
goarch: arm64 | ||
build_flag_templates: | ||
- "--pull" | ||
- "--build-arg=ARCH=linux/arm64" | ||
- "--platform=linux/arm64" | ||
- "--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 }}" | ||
- "[email protected]" | ||
docker_manifests: | ||
- name_template: 'ghcr.io/kilnfi/cardano-validator-watcher:{{ .Tag }}' | ||
image_templates: | ||
- 'ghcr.io/kilnfi/cardano-validator-watcher:{{ .Tag }}-amd64' | ||
- 'ghcr.io/kilnfi/cardano-validator-watcher:{{ .Tag }}-arm64' | ||
- name_template: 'ghcr.io/kilnfi/cardano-validator-watcher:latest' | ||
image_templates: | ||
- 'ghcr.io/kilnfi/cardano-validator-watcher:{{ .Tag }}-amd64' | ||
- 'ghcr.io/kilnfi/cardano-validator-watcher:{{ .Tag }}-arm64' | ||
changelog: | ||
disable: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters