Fix release pipeline #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- "*" | |
permissions: | |
packages: write | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build and publish Docker image | |
run: | | |
echo ${{ steps.vars.outputs.tag }} | |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u EDyO --password-stdin | |
docker build --pull --rm -f "appu/Dockerfile" -t ghcr.io/edyo/appu:${{ github.ref_name }} appu/. | |
docker push ghcr.io/edyo/appu:${{ github.ref_name }} | |
release: | |
needs: | |
- docker | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
destination_os: [linux, windows, darwin] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: "^1.16" | |
- name: Tidy dependencies to local | |
run: | | |
go mod tidy | |
- name: Build | |
run: | | |
scripts/build.sh ${{ matrix.destination_os }} amd64 | |
- name: Release built binaries | |
run: | | |
echo ${{ secrets.TEST_TOKEN }} | gh auth login --with-token | |
gh release upload ${{ github.ref_name }} build/* |