Skip to content

Commit

Permalink
Upgrade build-push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trnubo committed Apr 12, 2023
1 parent adede21 commit b6e46a3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 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

0 comments on commit b6e46a3

Please sign in to comment.