Skip to content

Commit b1016ea

Browse files
committed
build and publish containers to quay.io
1 parent 3cf62d8 commit b1016ea

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/quay-publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: publish-quay
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags:
7+
- '*'
8+
workflow_dispatch: {}
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Get image tags
15+
id: image_tags
16+
run: |
17+
echo -n ::set-output name=IMAGE_TAGS::$(git describe --tags)
18+
- name: Build and publish cwltool_module image to Quay
19+
uses: docker/build-push-action@v1
20+
with:
21+
file: cwltool.Dockerfile
22+
registry: ${{ secrets.REGISTRY_SERVER }}
23+
repository: ${{ secrets.REGISTRY_NAMESPACE }}/cwltool_module
24+
username: ${{ secrets.REGISTRY_USERNAME }}
25+
password: ${{ secrets.REGISTRY_PASSWORD }}
26+
tags: "${{ steps.image_tags.outputs.IMAGE_TAGS }}"
27+
target: module
28+
- name: Build and publish cwltool image to Quay
29+
uses: docker/build-push-action@v1
30+
with:
31+
file: cwltool.Dockerfile
32+
registry: ${{ secrets.REGISTRY_SERVER }}
33+
repository: ${{ secrets.REGISTRY_NAMESPACE }}/cwltool
34+
username: ${{ secrets.REGISTRY_USERNAME }}
35+
password: ${{ secrets.REGISTRY_PASSWORD }}
36+
tags: "${{ steps.image_tags.outputs.IMAGE_TAGS }}"

0 commit comments

Comments
 (0)