Skip to content

push-to-quay

push-to-quay #30

Workflow file for this run

name: push-to-quay
on:
workflow_run:
workflows: ["test"]
branches: [main]
types:
- completed
jobs:
buildnpush:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
fail-fast: false
name: unit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: Get dependencies
run: go get -t ./...
- name: Lint
run: make fmtcheck staticcheck spellcheck licensescheck
if: ${{ matrix.os != 'windows-latest' }}
- name: gosec
if: ${{ matrix.os == 'ubuntu-latest' }}
run: make gosec
- name: Test
run: make test-acc
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: quay.io
username: meisterlabs+secrets1p
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
quay.io/meisterlabs/secrets-store-csi-driver-provider-1password:latest
quay.io/meisterlabs/secrets-store-csi-driver-provider-1password:0.1