Merge pull request #401 from samalba/release-s3

Release s3
This commit is contained in:
Sam Alba 2021-04-30 17:21:42 -07:00 committed by GitHub
commit 5e241fde3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 6 deletions

View File

@ -18,9 +18,15 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Configure AWS cli
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.DAGGERCI_TOKEN }}

View File

@ -5,7 +5,8 @@ before:
- go mod download
builds:
- env:
-
env:
- CGO_ENABLED=0
main: ./cmd/dagger
binary: dagger
@ -21,12 +22,11 @@ builds:
- arm64
archives:
- name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
-
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
files:
- LICENSE
- README.md
- doc/**/*
- examples/**/*
format_overrides:
- goos: windows
@ -46,13 +46,27 @@ changelog:
- '^test:'
brews:
- tap:
-
tap:
owner: dagger
name: homebrew-tap
commit_author:
name: dagger-bot
email: noreply@dagger.io
url_template: "https://dagger-io.s3.amazonaws.com/dagger/releases/{{ .Version }}/{{ .ArtifactName }}"
homepage: "https://github.com/dagger/dagger"
description: "Dagger is a programmable deployment system."
test: |
system "#{bin}/dagger version"
blobs:
-
provider: s3
region: us-east-1
bucket: dagger-io
folder: "dagger/releases/{{ .Version }}"
publishers:
-
name: publish-version
cmd: sh -c "echo {{ .Version }} | aws s3 cp - s3://dagger-io/dagger/latest_version"