-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (29 loc) · 951 Bytes
/
build.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
name: Build
on:
workflow_dispatch:
inputs:
container:
description: 'The container to push'
required: true
default: 'akuity-devcontainer'
type: choice
options: # Folders under `containers/` that have a repo set up in Quay.
- akuity-devcontainer
- guestbook
- leaderboard
run-name: Build ${{ inputs.container }}:${{ inputs.tag }}
jobs:
push-container-image:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
context: 'containers/${{ inputs.container }}'
push: false
tags: quay.io/akuity/argo-cd-learning-assets/${{ inputs.container }}:pr-${{ github.event.pull_request.number }}
platforms: 'linux/amd64,linux/arm64'