-
Notifications
You must be signed in to change notification settings - Fork 134
85 lines (76 loc) · 2.53 KB
/
release-please.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
on:
push:
branches:
- master
name: release-please
jobs:
release_please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
release-type: python
package-name: bioconda-utils
publish_containers:
runs-on: ubuntu-latest
needs: release_please
if: needs.release_please.outputs.release_created
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: get-tag
run: |
#tag=${{ github.event.release && github.event.release.tag_name || github.sha }}
tag=${{ needs.release_please.outputs.tag_name }}
printf %s "::set-output name=tag::${tag#v}"
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build x86_64 Image
id: buildah-build
uses: redhat-actions/buildah-build@v2
with:
image: bioconda-utils-build-env-cos7
arch: amd64
build-args: |
BASE_IMAGE=quay.io/condaforge/linux-anvil-cos7-x86_64
tags: >-
latest
${{ steps.get-tag.outputs.tag }}
dockerfiles: |
./Dockerfile
- name: Push To Quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.buildah-build.outputs.image }}
tags: ${{ steps.buildah-build.outputs.tags }}
registry: ${{ secrets.QUAY_BIOCONDA_REPO }}
username: ${{ secrets.QUAY_BIOCONDA_USERNAME }}
password: ${{ secrets.QUAY_BIOCONDA_TOKEN }}
- name: Build ARM Image
id: buildah-build-arm
uses: redhat-actions/buildah-build@v2
with:
image: bioconda-utils-build-env-cos7-aarch64
arch: arm64
build-args: |
BASE_IMAGE=quay.io/condaforge/linux-anvil-aarch64
tags: >-
latest
${{ steps.get-tag.outputs.tag }}
dockerfiles: |
./Dockerfile
- name: Push To Quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.buildah-build-arm.outputs.image }}
tags: ${{ steps.buildah-build-arm.outputs.tags }}
registry: ${{ secrets.QUAY_BIOCONDA_REPO }}
username: ${{ secrets.QUAY_BIOCONDA_USERNAME }}
password: ${{ secrets.QUAY_BIOCONDA_TOKEN }}