-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (36 loc) · 1.13 KB
/
build-cmsmon-py.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
# --- Builds cmsmon-py docker image ---
name: Build
on:
push:
tags:
- 'drpy-*.*.*'
jobs:
build-cmsmon-py:
name: Build cmsmon-py
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Get git tag
id: get_tag
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}
- name: Get cmsmon-py Dockerfile
run: |
curl -ksLO https://raw.githubusercontent.com/dmwm/CMSKubernetes/master/docker/cmsmon-py/Dockerfile
- name: Login to registry.cern.ch
uses: docker/login-action@v1
with:
registry: registry.cern.ch
username: ${{ secrets.CERN_LOGIN }}
password: ${{ secrets.CERN_TOKEN }}
- name: Publish cmsmon-py image to registry.cern.ch
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: true
build-args: |
PY_VERSION=3.9.12
CMSMONITORING_TAG=${{ steps.get_tag.outputs.tag }}
tags: registry.cern.ch/cmsmonitoring/cmsmon-py:${{ steps.get_tag.outputs.tag }}