Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Go Release CLI to GitHub Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
u217269 committed Jul 27, 2020
1 parent b00a1f3 commit 63411a8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 71 deletions.
70 changes: 0 additions & 70 deletions .delivery/build-and-push.sh

This file was deleted.

15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Shallow checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
fetch-depth: 0
- name: "Docker: Parse release version from git tag"
id: docker_release_version
run: echo ::set-output name=docker_release_version::${GITHUB_REF/refs\/tags\//}
Expand All @@ -41,3 +41,16 @@ jobs:
run: docker push schweizerischebundesbahnen/zally-server:${{ steps.docker_release_version.outputs.docker_release_version }}
- name: "Zally-Web-UI: Push docker image as latest"
run: docker push schweizerischebundesbahnen/zally-web-ui:${{ steps.docker_release_version.outputs.docker_release_version }}
- name: Set up Go for CLI release
uses: actions/setup-go@v2
with:
go-version: 1.14
working-directory: ./cli/zally
- name: Release CLI with GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: ${{ steps.docker_release_version.outputs.docker_release_version }}
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./cli/zally

0 comments on commit 63411a8

Please sign in to comment.