-
Notifications
You must be signed in to change notification settings - Fork 23
60 lines (52 loc) · 1.48 KB
/
podman.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
50
51
52
53
54
55
56
57
58
59
60
name: Podman
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Go Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: stable
id: go
- name: Clone the repository
uses: actions/checkout@v2
- name: Build
run: make build
- name: Check
run: make check
env:
COVER_THRESHOLD: 70.0
GOLANGCI_LINTERS: gosec
- name: Buildah Action
id: build-image
if: ${{ github.event.pull_request.head.repo.full_name == 'moov-io/fed' }}
uses: redhat-actions/buildah-build@v2
with:
image: moov/fed
tags: podman-${{ github.sha }}
containerfiles: |
./Dockerfile
- name: Log in to the GitHub Container registry
if: ${{ github.event.pull_request.head.repo.full_name == 'moov-io/fed' }}
uses: redhat-actions/podman-login@v1
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to GitHub Container Repository
if: ${{ github.event.pull_request.head.repo.full_name == 'moov-io/fed' }}
id: push-to-ghcr
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: docker.io