-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.36 KB
/
push-to-quay.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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