forked from k-orc/openstack-resource-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1.1 KB
/
release_image.yaml
File metadata and controls
36 lines (30 loc) · 1.1 KB
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
name: release image
on:
push:
tags:
- v**
permissions:
contents: read
env:
image_tag: quay.io/orc/openstack-resource-controller:${GITHUB_REF_NAME}
bundle_image_tag: quay.io/orc/openstack-resource-controller-bundle:${GITHUB_REF_NAME}
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # tag=v6.0.2
with:
# Required for git describe to generate correct output for populating
# build variables
fetch-depth: 0
fetch-tags: true
persist-credentials: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # tag=v4
- name: Install build dependencies
run: sudo apt-get install -y libgpgme-dev
- run: |
docker login -u="${{ secrets.QUAY_USERNAME }}" -p="${{ secrets.QUAY_TOKEN }}" quay.io # zizmor: ignore[secrets-outside-env]
make docker-buildx IMG=${{ env.image_tag }}
make build-bundle-image BUNDLE_IMG=${{ env.bundle_image_tag }}
make docker-push IMG=${{ env.bundle_image_tag }}