Skip to content

Commit

Permalink
Fixed automatic builds with docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
davidallendj committed Aug 21, 2024
1 parent 990baea commit a1b26e6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 50 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/build-container.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@ permissions: write-all # Necessary for the generate-build-provenance action with
jobs:

build:


runs-on: ubuntu-latest

steps:
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Docker Login
uses: docker/login-action@v3
with:
registry :ghcr.io
username: ${{ gihub.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
18 changes: 18 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,24 @@ archives:
- CHANGELOG.md
- README.md
- bin/magellan.sh
dockers:
-
image_templates:
- ghcr.io/openchami/{{.ProjectName}}:latest
- ghcr.io/openchami/{{.ProjectName}}:{{ .Tag }}
- ghcr.io/openchami/{{.ProjectName}}:{{ .Major }}
- ghcr.io/openchami/{{.ProjectName}}:{{ .Major }}.{{ .Minor }}
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- LICENSE
- CHANGELOG.md
- README.md
- bin/magellan.sh
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit a1b26e6

Please sign in to comment.