implemented support for latest_version write + configured aws creds

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-04-30 17:16:40 -07:00
parent af39fed691
commit be2456b190
2 changed files with 13 additions and 2 deletions

View File

@ -18,9 +18,15 @@ jobs:
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.16 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 - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2 uses: goreleaser/goreleaser-action@v2
with: with:
args: release --rm-dist args: release --rm-dist
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.DAGGERCI_TOKEN }}

View File

@ -53,7 +53,7 @@ brews:
commit_author: commit_author:
name: dagger-bot name: dagger-bot
email: noreply@dagger.io email: noreply@dagger.io
url_template: "http://dagger-io.s3-website-us-east-1.amazonaws.com/dagger/releases/{{ .Version }}/{{ .ArtifactName }}" url_template: "https://dagger-io.s3.amazonaws.com/dagger/releases/{{ .Version }}/{{ .ArtifactName }}"
homepage: "https://github.com/dagger/dagger" homepage: "https://github.com/dagger/dagger"
description: "Dagger is a programmable deployment system." description: "Dagger is a programmable deployment system."
test: | test: |
@ -65,3 +65,8 @@ blobs:
region: us-east-1 region: us-east-1
bucket: dagger-io bucket: dagger-io
folder: "dagger/releases/{{ .Version }}" folder: "dagger/releases/{{ .Version }}"
publishers:
-
name: publish-version
cmd: sh -c "echo {{ .Version }} | aws s3 cp - s3://dagger-io/dagger/latest_version"