Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
kickstart-tests/.github/workflows/container-autoupdate.yml
View runs Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
31 lines (27 sloc)
1.09 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v3.3.0 | |
- 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 |