ci: fix staticcheck workflow step #23
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: Get tag name | |
id: tag_name | |
run: | | |
echo "name=SOURCE_TAG::${GITHUB_REF#refs/tags/}" >> ${GITHUB_OUTPUT} | |
- name: Build and publish Docker image | |
run: | | |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u EDyO --password-stdin | |
docker build --pull --rm -f "appu/Dockerfile" -t ghcr.io/edyo/appu:${{ steps.tag_name.outputs.SOURCE_TAG }} appu/. | |
docker push ghcr.io/edyo/appu:${{ steps.tag_name.outputs.SOURCE_TAG }} | |
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: Get the version | |
id: get_version | |
run: echo "name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)" >> ${GITHUB_OUTPUT} | |
- name: Release built binaries | |
run: "echo ${{ secrets.TEST_TOKEN }} | gh auth login --with-token \ngh release upload ${{ steps.get_version.outputs.VERSION }} build/*" | |