Paul Jolly | 65163a0 | 2020-05-16 07:48:35 +0100 | [diff] [blame] | 1 | # Generated by internal/ci/ci_tool.cue; do not edit |
Koichi Shiraishi | 2e67318 | 2020-01-19 04:53:36 +0900 | [diff] [blame] | 2 | |
Paul Jolly | 8fcefc8 | 2020-05-16 13:29:07 +0100 | [diff] [blame] | 3 | name: Release |
Koichi Shiraishi | 2e67318 | 2020-01-19 04:53:36 +0900 | [diff] [blame] | 4 | on: |
Koichi Shiraishi | efb89b8 | 2020-04-15 06:25:04 +0900 | [diff] [blame] | 5 | push: |
Paul Jolly | 8fcefc8 | 2020-05-16 13:29:07 +0100 | [diff] [blame] | 6 | tags: |
Paul Jolly | 65163a0 | 2020-05-16 07:48:35 +0100 | [diff] [blame] | 7 | - v* |
Koichi Shiraishi | 2e67318 | 2020-01-19 04:53:36 +0900 | [diff] [blame] | 8 | jobs: |
Paul Jolly | 8fcefc8 | 2020-05-16 13:29:07 +0100 | [diff] [blame] | 9 | goreleaser: |
| 10 | runs-on: ubuntu-latest |
Koichi Shiraishi | 2e67318 | 2020-01-19 04:53:36 +0900 | [diff] [blame] | 11 | steps: |
| 12 | - name: Checkout code |
| 13 | uses: actions/checkout@v2 |
Paul Jolly | 8fcefc8 | 2020-05-16 13:29:07 +0100 | [diff] [blame] | 14 | - 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 Shiraishi | 2e67318 | 2020-01-19 04:53:36 +0900 | [diff] [blame] | 20 | with: |
Paul Jolly | 8fcefc8 | 2020-05-16 13:29:07 +0100 | [diff] [blame] | 21 | 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 Jolly | 65163a0 | 2020-05-16 07:48:35 +0100 | [diff] [blame] | 49 | }} |
Paul Jolly | 8fcefc8 | 2020-05-16 13:29:07 +0100 | [diff] [blame] | 50 | add_git_labels: true |