This repository has been archived by the owner on Jan 21, 2025. It is now read-only.
Fix vuln as of 2025-01-20 #122
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
name: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: "./go.mod" | |
- run: make vendor | |
- run: make govulncheck | |
if: ${{ !cancelled() }} | |
- run: make lint | |
if: ${{ !cancelled() }} | |
- run: make test | |
if: ${{ !cancelled() }} | |
- run: make check-tidy | |
if: ${{ !cancelled() }} | |
build-image: | |
runs-on: ubuntu-22.04 | |
needs: test | |
env: | |
TARGET: server | |
IMAGE_NAME: authgear-nft-server | |
steps: | |
- uses: actions/checkout@v4 | |
- run: make build-image TARGET=$TARGET IMAGE_NAME=$IMAGE_NAME | |
- run: make tag-image IMAGE_NAME=$IMAGE_NAME | |
- name: Login to Quay.io | |
if: ${{ github.repository == 'authgear/authgear-nft-indexer' && github.event_name == 'push' }} | |
uses: docker/login-action@v3 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_ROBOT_TOKEN }} | |
- run: make push-image IMAGE_NAME=$IMAGE_NAME | |
if: ${{ github.repository == 'authgear/authgear-nft-indexer' && github.event_name == 'push' }} |