Skip to content

Commit

Permalink
[skip ci] Update workflow build-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
trnubo committed Apr 13, 2023
1 parent 4a93605 commit 78b1a7d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# Panubo build and push to Quay.io and ECR Public
# This GH Action is intended for public docker images that package upstream applications/services (ie not for projects of Panubo's).
# For repos that build multiple repos use the multi-build-push.yml workflow.
#
# This workflow runs on pushes to "main", PRs (does not push) or matching git tags.
# Image names are generated from the repository name, if "docker-" is part of the repository name it is removed from the docker image name.
#
# Additionally this workflow performs some automated testing after a docker build.
# Automated testing is triggered by `make _ci_test`, if no test is required the Makefile target should just run `true`.
# Before tests are run a Docker build is performed, the resulting image has a tag of "test"
# BATS is installed since it is commonly required by the tests.

name: build and push on main and tags

on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-[0-9]+
- v[0-9]+.[0-9]+.[0-9]+*
pull_request:

env:
Expand Down Expand Up @@ -44,6 +55,7 @@ jobs:
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=match,pattern=v(.*),group=1
# type=sha
- name: Set up QEMU
Expand Down Expand Up @@ -75,7 +87,7 @@ jobs:
password: ${{ secrets.PANUBUILD_QUAYIO_TOKEN }}

- name: Setup BATS
uses: mig4/setup-bats@v1
uses: panubo/setup-bats-action@v2
with:
bats-version: 1.7.0

Expand Down

0 comments on commit 78b1a7d

Please sign in to comment.