Skip to content

chore(deps): general dependency upgrade #42

chore(deps): general dependency upgrade

chore(deps): general dependency upgrade #42

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- run: go build -v ./...
- run: go test -v ./...
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- run: |
go install github.com/praetorian-inc/gokart@latest
gokart scan
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: docker://github/super-linter:latest
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PEEPHOLE }}
VALIDATE_ALL_CODEBASE: false
docker:
needs: [test, scan, lint]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_ACTIONS_PEEPHOLE }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/immobiliare/peephole:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}