ci: forward github token #11
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
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- uses: actions/checkout@v4 | |
- run: make download-tools | |
- run: make install | |
- run: make generate | |
- run: make lint | |
- run: make test | |
- run: make build-js | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
- run: make packr | |
- if: startsWith(github.ref, 'refs/tags/v') | |
run: echo "$DOCKER_PASS" | docker login --username "scregoci" --password-stdin | |
env: | |
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} | |
- if: startsWith(github.ref, 'refs/tags/v') | |
run: make release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |