forked from coreos/butane
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.37 KB
/
container-rebuild.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
45
46
# Maintained in https://github.com/coreos/repo-templates
# Do not edit downstream.
name: Rebuild release container
on:
workflow_dispatch:
inputs:
git-tag:
description: Existing Git tag
default: vX.Y.Z
docker-tag:
description: New Docker versioned tag
default: vX.Y.Z-1
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@v3
with:
ref: ${{ github.event.inputs.git-tag }}
# fetch tags so the compiled-in version number is useful
fetch-depth: 0
# If we're running on a signed tag, actions/checkout rewrites it into
# a lightweight tag (!!!) which "git describe" then ignores. Rewrite
# it back.
# https://github.com/actions/checkout/issues/290
- name: Fix actions/checkout synthetic tag
run: git fetch --tags --force
- name: Build and push container
uses: coreos/actions-lib/build-container@main
with:
credentials: ${{ secrets.QUAY_AUTH }}
push: quay.io/coreos/butane quay.io/coreos/fcct
arches: amd64 arm64
tags: ${{ github.event.inputs.docker-tag }} release