Sync repo templates ⚙ #19
Workflow file for this run
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
# Maintained in https://github.com/coreos/repo-templates | |
# Do not edit downstream. | |
name: Container | |
on: | |
push: | |
branches: [main] | |
tags: ["v*"] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
# avoid races when pushing containers built from main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
build-container: | |
name: Build container image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Build and push container | |
uses: coreos/actions-lib/build-container@main | |
with: | |
credentials: ${{ secrets.QUAY_AUTH }} | |
push: quay.io/coreos/rhcosbot | |
arches: amd64 |