Skip to content

Store the keyring in the /tmp (#47) #8

Store the keyring in the /tmp (#47)

Store the keyring in the /tmp (#47) #8

Workflow file for this run

name: Docker Image Publication
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: java
steps:
- uses: actions/checkout@v2
- name: Set version
id: version
run: |
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/v##g")
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- run: ./gradlew docker
- run: docker tag scalar-admin:latest ghcr.io/scalar-labs/scalar-admin:${{ steps.version.outputs.version }}
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ghcr.io/scalar-labs/scalar-admin:${{ steps.version.outputs.version }}
format: 'table'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'
- run: docker push ghcr.io/scalar-labs/scalar-admin:${{ steps.version.outputs.version }}