Skip to content

build(deps): bump docker/setup-buildx-action from 1 to 3 #51

build(deps): bump docker/setup-buildx-action from 1 to 3

build(deps): bump docker/setup-buildx-action from 1 to 3 #51

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@v4
- uses: actions/setup-go@v2
- run: go build -v ./...
- run: go test -v ./...
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v4
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@v4
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- 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 }}