Skip to content

Commit

Permalink
chore: add image workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fitbeard committed Jul 18, 2023
1 parent 0f95bf8 commit 455ecf1
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 455ecf1

Please sign in to comment.