-
Notifications
You must be signed in to change notification settings - Fork 31
42 lines (34 loc) · 1.33 KB
/
rucio-release-images.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
name: Rucio Release Image CI
on:
push:
tags:
- "release-*.cms*"
jobs:
buildx:
runs-on: ubuntu-latest
name: Build and Push CMS Rucio Release Images
strategy:
matrix:
image: [rucio-probes, rucio-daemons, rucio-server, rucio-ui, rucio_client]
fail-fast: False
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get git tag name
id: gittag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_ENV"
- name: Get rucio version
id: rucioversion
run: echo "rucio_version=$( echo ${{ env.tag }} | grep -Eo '[0-9]*\.?[0-9]+\.[0-9]+')" >> "$GITHUB_ENV"
- name: Login to CERN Harbour
uses: redhat-actions/podman-login@v1
with:
registry: registry.cern.ch
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_TOKEN }}
- name: Build the Docker Image
run: |
buildah build --build-arg RUCIO_VERSION=${{ env.rucio_version }} --build-arg CMSRUCIO_GITTAG=${{ env.tag }} --file docker/${{ matrix.image }}/Dockerfile --tag registry.cern.ch/${{ vars.HARBOR_REPOSITORY }}/${{ matrix.image }}:${{ env.tag }} .
- name: Push the Docker Image
run: |
buildah push registry.cern.ch/${{ vars.HARBOR_REPOSITORY }}/${{ matrix.image }}:${{ env.tag }}