Skip to content

feat(deps): bump alpine from 3.20.2 to 3.21.0 #57

feat(deps): bump alpine from 3.20.2 to 3.21.0

feat(deps): bump alpine from 3.20.2 to 3.21.0 #57

Workflow file for this run

name: docker-test
on:
push:
branches:
- main
paths:
- "Dockerfile"
pull_request:
paths:
- "Dockerfile"
env:
BUILD_TAG: uplift:${{ github.sha }}
jobs:
docker-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.3"
- name: Cache Go
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: GoReleaser Build APK
uses: goreleaser/goreleaser-action@v6
with:
version: "v1.26.2"
args: release --clean --snapshot --skip docker,sign,sbom -p 5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Build Image
uses: docker/build-push-action@v6
with:
context: ./dist
file: ./Dockerfile
push: false
load: true
tags: ${{ env.BUILD_TAG }}
- run: docker run ${{ env.BUILD_TAG }}
- name: Trivy Vulnerability Scan
uses: aquasecurity/[email protected]
with:
image-ref: ${{ env.BUILD_TAG }}
format: table
exit-code: 1
severity: CRITICAL,HIGH