-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (36 loc) · 1.24 KB
/
quay-io-publish.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
name: Quay IO
on:
push:
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
name: Build and push image
runs-on: ubuntu-latest
environment: deployment
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: parakeet
tags: latest ${{ github.ref_name }}
containerfiles: |
./Dockerfile
# Podman Login action (https://github.com/redhat-actions/podman-login) also be used to log in,
# in which case 'username' and 'password' can be omitted.
- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/rosalindfranklininstitute
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"