Merge pull request #70 from SataQiu/fix-ci #61
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: FOSSA | |
on: | |
push: | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
branches: [master] | |
pull_request_target: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: "^1.19.x" | |
- run: go version | |
# Runs a set of commands to initialize and analyze with FOSSA | |
- name: Get branch name | |
uses: nelonoel/[email protected] | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
- run: VERSION="${BRANCH_NAME}" make ubuntu20.04 | |
- run: VERSION="${BRANCH_NAME}" make push-short | |
- run: VERSION="${BRANCH_NAME}" make push-latest |