Skip to content

Merge pull request #29 from albarbaro/fix-dashboard #25

Merge pull request #29 from albarbaro/fix-dashboard

Merge pull request #29 from albarbaro/fix-dashboard #25

name: Container build & push
# Controls when the workflow will run
on:
push:
branches: [main]
jobs:
build-dora-metrics-image:
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: dora-metrics
tags: latest ${{ github.sha }}
context: .
dockerfiles: |
./Dockerfile
- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/redhat-appstudio
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"