forked from common-workflow-language/cwltool
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.27 KB
/
quay-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
name: publish-quay
on:
push:
tags:
- '*'
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get image tags
id: image_tags
run: |
echo -n ::set-output name=IMAGE_TAGS::${GITHUB_REF#refs/*/}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Quay.io
uses: docker/login-action@v1
with:
registry: ${{ secrets.REGISTRY_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and publish cwltool_module image to Quay
uses: docker/build-push-action@v2
with:
file: cwltool.Dockerfile
tags: quay.io/commonwl/cwltool_module:${{ steps.image_tags.outputs.IMAGE_TAGS }}
target: module
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and publish cwltool image to Quay
uses: docker/build-push-action@v2
with:
file: cwltool.Dockerfile
tags: quay.io/commonwl/cwltool:${{ steps.image_tags.outputs.IMAGE_TAGS }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max