-
Notifications
You must be signed in to change notification settings - Fork 34
50 lines (42 loc) · 1.29 KB
/
publish-centos.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
name: Publish CentOS
on:
schedule:
- cron: "0 2 * * 2" # at 02:00 on Tuesday
workflow_dispatch:
inputs:
reason:
description: 'Reason'
required: false
default: 'Manual trigger'
jobs:
# CentOS 7 is kept, with one tag only, because previously used in Invenio.
centos7:
name: Publish CentOS
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: CentOS 7 Python 3.6
context: ./centos7/python3.6/
file: ./centos7/python3.6/Dockerfile
tag: 3.6
- name: CentOS 7 Python 3.9
context: ./centos7/python3.9/
file: ./centos7/python3.9/Dockerfile
tag: 3.9
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to CERN registry
uses: docker/login-action@v2
with:
registry: registry.cern.ch
username: ${{ secrets.CERN_REGISTRY_USERNAME }}
password: ${{ secrets.CERN_REGISTRY_PASSWORD }}
- name: Publish ${{ matrix.name }}
uses: docker/build-push-action@v3
with:
context: ${{ matrix.context }}
file: ${{ matrix.file }}
push: true
tags: registry.cern.ch/${{ github.repository_owner }}/centos7-python:${{ matrix.tag }}