-
Notifications
You must be signed in to change notification settings - Fork 25
75 lines (73 loc) · 2.38 KB
/
build-dockers.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
name: Create and publish a Docker image
# Trigger on push and on PR against master. Note that we don't push
# containers to the registry if we're doing a PR.
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
include:
- path: ci/ci-debian-10-3.9
tag: debian-10-3.9
- path: ci/ci-debian-11-3.10
tag: debian-11-3.10
- path: ci/ci-debian-i386-11-3.10
tag: debian-i386-11-3.10
- path: ci/ci-debian-12-3.10
tag: debian-12-3.10
- path: ci/ci-fedora-37-3.9
tag: fedora-37-3.9
- path: ci/ci-fedora-38-3.10
tag: fedora-38-3.10
- path: ci/ci-fedora-39-3.10
tag: fedora-39-3.10
- path: ci/ci-fedora-40-3.10
tag: fedora-40-3.10
- path: ci/ci-ubuntu-18.04-3.8
tag: ubuntu-18.04-3.8
- path: ci/ci-ubuntu-18.04-3.9
tag: ubuntu-18.04-3.9
- path: ci/ci-ubuntu-20.04-3.9
tag: ubuntu-20.04-3.9
- path: ci/ci-ubuntu-22.04-3.9
tag: ubuntu-22.04-3.9
- path: ci/ci-ubuntu-24.04-3.10
tag: ubuntu-24.04-3.10
name: Build CI container for ${{ matrix.tag }}
environment: github-action-autobuild
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Docker Hub Container registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to the GitHub Container registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: |
gnuradio/ci:${{ matrix.tag }}
ghcr.io/gnuradio/ci:${{ matrix.tag }}
file: ${{ matrix.path }}/Dockerfile