Skip to content

Commit

Permalink
Configure CI builds (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Nov 20, 2021
1 parent e52ee27 commit 25daaaf
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Container Image

on: push

jobs:
build:
name: Build & Publish
runs-on: ubuntu-20.04
steps:
- name: Compute Labels
id: meta
uses: docker/metadata-action@v3
with:
images: quay.io/ffddorf/unms-exporter
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Login to Quay
uses: docker/login-action@v1
with:
registry: quay.io
username: ffddorf+github_actions
password: ${{ secrets.QUAY_BOT_PASSWORD }}
- name: Build Image
uses: docker/build-push-action@v2
with:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true

0 comments on commit 25daaaf

Please sign in to comment.