-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (42 loc) · 1.42 KB
/
push-container-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
41
42
43
44
45
46
47
48
49
name: Push
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
tag:
description: 'The tag to push for the container.'
required: true
type: string
run-name: Publish ${{ inputs.container }}:${{ inputs.tag }}
jobs:
push-container-image:
runs-on: ubuntu-latest
steps:
- name: print inputs
run: |
echo "Pushing container image: quay.io/akuity/argo-cd-learning-assets/${{ inputs.container }}:${{ inputs.tag }}."
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Quay
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_AKUITY_LEARNING_CI_USERNAME }}
password: ${{ secrets.QUAY_AKUITY_LEARNING_CI_PASSWORD }}
- 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: true
tags: quay.io/akuity/argo-cd-learning-assets/${{ inputs.container }}:${{ inputs.tag }}
platforms: 'linux/amd64,linux/arm64'