fix(deps): update all #396
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- 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 |