Bump github.com/go-jose/go-jose/v3 from 3.0.0 to 3.0.1 #92
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: Build image from pull request | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Figure out if running fork PR | |
id: fork | |
run: '["${{ secrets.DOCKER_REGISTRY_TOKEN }}" == ""] && echo "::set-output name=is_fork_pr::true" || echo "::set-output name=is_fork_pr::false"' | |
- name: Docker Login | |
uses: docker/login-action@v1 | |
with: | |
registry: ${{ secrets.DOCKER_REGISTRY }} | |
username: ${{ secrets.DOCKER_REGISTRY_USER }} | |
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }} | |
if: steps.fork.outputs.is_fork_pr == 'false' | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.x' | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
args: -p bugs -p unused | |
- name: Build Docker image | |
run: | | |
export GITHUB_TAG_NAME=${GITHUB_HEAD_REF##*/} | |
docker build -f Dockerfile -t ghcr.io/metal-stack/metal-console:pr-${GITHUB_TAG_NAME} . | |
- name: Push Docker image | |
run: | | |
export GITHUB_TAG_NAME=${GITHUB_HEAD_REF##*/} | |
# pull request images are prefixed with 'pr' to prevent them from overriding released images | |
docker push ghcr.io/metal-stack/metal-console:pr-${GITHUB_TAG_NAME} | |
if: steps.fork.outputs.is_fork_pr == 'false' |