blob: c169636ff699b42936cede393eeb00d1ea751265 [file] [log] [blame]
Paul Jolly65163a02020-05-16 07:48:35 +01001# Generated by internal/ci/ci_tool.cue; do not edit
Koichi Shiraishi2e673182020-01-19 04:53:36 +09002
Paul Jolly8fcefc82020-05-16 13:29:07 +01003name: Release
Koichi Shiraishi2e673182020-01-19 04:53:36 +09004on:
Koichi Shiraishiefb89b82020-04-15 06:25:04 +09005 push:
Paul Jolly8fcefc82020-05-16 13:29:07 +01006 tags:
Paul Jolly65163a02020-05-16 07:48:35 +01007 - v*
Koichi Shiraishi2e673182020-01-19 04:53:36 +09008jobs:
Paul Jolly8fcefc82020-05-16 13:29:07 +01009 goreleaser:
10 runs-on: ubuntu-latest
Koichi Shiraishi2e673182020-01-19 04:53:36 +090011 steps:
12 - name: Checkout code
13 uses: actions/checkout@v2
Paul Jolly8fcefc82020-05-16 13:29:07 +010014 - name: Unshallow
15 run: git fetch --prune --unshallow
16 - name: Run GoReleaser
17 env:
18 GITHUB_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
19 uses: docker://goreleaser/goreleaser:latest
Koichi Shiraishi2e673182020-01-19 04:53:36 +090020 with:
Paul Jolly8fcefc82020-05-16 13:29:07 +010021 args: release --rm-dist
22 docker:
23 name: docker
24 runs-on: ubuntu-latest
25 steps:
26 - name: Check out the repo
27 uses: actions/checkout@v2
28 - name: Set version environment
29 run: |-
30 CUE_VERSION=$(echo ${GITHUB_REF##refs/tags/v})
31 echo "CUE_VERSION=$CUE_VERSION"
32 echo "::set-env name=CUE_VERSION::$(echo $CUE_VERSION)"
33 - name: Push to Docker Hub
34 env:
35 DOCKER_BUILDKIT: 1
36 GOLANG_VERSION: 1.14
37 CUE_VERSION: ${{ env.CUE_VERSION }}
38 uses: docker/build-push-action@v1
39 with:
40 tags: ${{ env.CUE_VERSION }},latest
41 repository: cuelang/cue
42 username: ${{ secrets.DOCKER_USERNAME }}
43 password: ${{ secrets.DOCKER_PASSWORD }}
44 tag_with_ref: false
45 tag_with_sha: false
46 target: cue
47 always_pull: true
48 build_args: GOLANG_VERSION=${{ env.GOLANG_VERSION }},CUE_VERSION=v${{ env.CUE_VERSION
Paul Jolly65163a02020-05-16 07:48:35 +010049 }}
Paul Jolly8fcefc82020-05-16 13:29:07 +010050 add_git_labels: true