Skip to content

feat(deps): bump alpine from 3.18.3 to 3.18.5 #46

feat(deps): bump alpine from 3.18.3 to 3.18.5

feat(deps): bump alpine from 3.18.3 to 3.18.5 #46

Workflow file for this run

# Copyright (c) 2022 Gemba Advantage
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# in the Software without restriction, including without limitation the rights
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
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@v4
with:
go-version: '1.20'
- name: Cache Go
uses: actions/cache@v3
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@v5
with:
version: latest
args: release --rm-dist --snapshot --skip-docker --skip-sign --skip-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@v2
- name: Build Image
uses: docker/build-push-action@v4
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