forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 1.09 KB
/
container-autoupdate.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
# Build our container for running kickstart tests and push that to our quay.io repository
# We cannot fully self-validate the new container, as running all kickstart tests just takes too long.
# So tag the containers by build date, so that in the worst case we can always reset :latest to the previously working tag.
name: Build and push containers
on:
schedule:
- cron: 0 18 * * 6
# be able to start this action manually from a actions tab when needed
workflow_dispatch:
jobs:
runner:
name: Build kstest-runner container
runs-on: ubuntu-latest
environment: quay.io
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Login to container registry
run: docker login -u ${{ secrets.QUAY_USERNAME }} -p ${{ secrets.QUAY_PASSWORD }} quay.io
- name: Build and push container
run: |
TAG=$(date --iso-8601)
NAME=quay.io/rhinstaller/kstest-runner
docker build -t $NAME:$TAG containers/runner
docker tag $NAME:$TAG $NAME:latest
docker push $NAME:$TAG
docker push $NAME:latest