Skip to content

Commit

Permalink
Merge pull request #8 from fitbeard/add/build_workflow
Browse files Browse the repository at this point in the history
chore: add image workflow
  • Loading branch information
fitbeard authored Jul 18, 2023
2 parents 4805639 + 455ecf1 commit 2a8cfaf
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: publish

on:
release:
types:
- published

jobs:
image:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/[email protected]

- name: Authenticate with Quay.io
uses: docker/[email protected]
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}

- name: Generate image tag
id: image_tag
run: |
echo tag=$(echo ${{ github.event.release.tag_name }} | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Build image
uses: docker/[email protected]
with:
context: .
file: Dockerfile
push: true
tags: |
quay.io/tadas/rally-exporter:latest
quay.io/tadas/rally-exporter:${{ steps.image_tag.outputs.tag }}

0 comments on commit 2a8cfaf

Please sign in to comment.