-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (32 loc) · 1.06 KB
/
build-and-push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build and push betka image to Quay.io registry
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-20.04
if: github.repository_owner == 'sclorg'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build betka image
id: build-image
# https://github.com/marketplace/actions/buildah-build
uses: redhat-actions/buildah-build@v2
with:
dockerfiles: ./Dockerfile
image: betka
tags: latest 1 ${{ github.sha }} 0.7.9
- name: Push betka image to Quay.io
id: push-to-quay
uses: redhat-actions/[email protected]
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/rhscl
username: ${{ secrets.QUAY_IMAGE_RHSCL_BUILDER_USERNAME }}
password: ${{ secrets.QUAY_IMAGE_RHSCL_BUILDER_TOKEN }}
- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"