forked from SatelliteQE/robottelo
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.13 KB
/
update_robottelo_image.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
37
38
39
40
41
42
43
44
# Update robottelo image on quay.
name: update_robottelo_image
on:
push:
branches:
- master
- 6.*.z
workflow_dispatch:
jobs:
robottelo_container:
name: Update Robottelo container image on Quay.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get image tag
id: image_tag
run: |
TAG="${GITHUB_REF##*/}"
TAG=${TAG/master/latest}
echo "IMAGE_TAG=$TAG" >> $GITHUB_OUTPUT
- name: Build Robottelo image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: robottelo
tags: ${{ steps.image_tag.outputs.IMAGE_TAG }}
containerfiles: |
./Dockerfile
- name: Push Robottelo image to quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
image: robottelo
tags: ${{ steps.image_tag.outputs.IMAGE_TAG }}
registry: ${{ secrets.QUAY_SERVER }}/${{ secrets.QUAY_NAMESPACE }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}