Skip to content

Merge pull request #238 from moov-io/dependabot/bundler/docs/commonma… #225

Merge pull request #238 from moov-io/dependabot/bundler/docs/commonma…

Merge pull request #238 from moov-io/dependabot/bundler/docs/commonma… #225

Workflow file for this run

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
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: runner.os == 'Linux' && github.repository == '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: runner.os == 'Linux' && github.repository == '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