-
Notifications
You must be signed in to change notification settings - Fork 85
40 lines (35 loc) · 925 Bytes
/
image.yaml
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
name: image
on:
pull_request_target:
branches:
- '*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to attach to image'
required: true
jobs:
image:
name: image
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v2
- name: registry login
uses: docker/login-action@v1
with:
registry: quay.io
username: projectquay+quay_github
password: ${{ secrets.QUAY_TOKEN }}
- name: set up qemu
uses: docker/setup-qemu-action@v2
- name: set up docker buildx
uses: docker/setup-buildx-action@v2
- name: build image
id: push
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/ppc64le,linux/s390x
push: true
context: ./
tags: quay.io/projectquay/quay-operator:${{ github.event.inputs.tag || github.event.number }}