-
Notifications
You must be signed in to change notification settings - Fork 90
100 lines (94 loc) · 2.94 KB
/
nightly.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Nightly Publish
permissions:
contents: read
packages: write
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
#VERSIONS
- name: buster
context: nightly/buster
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386
tags: |
nightly-buster
- name: slim-buster
context: nightly/buster/slim
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386
tags: |
nightly-buster-slim
- name: bullseye
context: nightly/bullseye
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le,linux/s390x
tags: |
nightly-bullseye
- name: slim-bullseye
context: nightly/bullseye/slim
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le,linux/s390x
tags: |
nightly-bullseye-slim
- name: bookworm
context: nightly/bookworm
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le,linux/s390x
tags: |
nightly-bookworm
nightly
- name: slim-bookworm
context: nightly/bookworm/slim
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le,linux/s390x
tags: |
nightly-bookworm-slim
nightly-slim
- name: alpine3.18
context: nightly/alpine3.18
platforms: linux/amd64,linux/arm64
tags: |
nightly-alpine3.18
- name: alpine3.19
context: nightly/alpine3.19
platforms: linux/amd64,linux/arm64
tags: |
nightly-alpine3.19
nightly-alpine
#VERSIONS
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: rust-lang
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: rustopsbot
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: |
rustlang/rust
ghcr.io/rust-lang/rust
tags: ${{ matrix.tags }}
- uses: docker/build-push-action@v5
with:
context: ${{ matrix.context }}
platforms: ${{ matrix.platforms }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}