forked from erlang/otp
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 976 Bytes
/
update-base.yaml
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
name: Update docker base image
## Update the base image every day
on:
workflow_dispatch:
schedule:
## In UTC
- cron: '0 0 * * *'
## Build base images to be used by other github workflows
jobs:
build:
name: Update base Erlang/OTP build images
if: github.repository == 'erlang/otp'
runs-on: ubuntu-latest
strategy:
matrix:
type: [debian-base,ubuntu-base,i386-debian-base]
steps:
- uses: actions/checkout@v2
- name: Docker login
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build base image
id: base
run: >-
BASE_TAG=docker.pkg.github.com/erlang/otp/${{ matrix.type }}
BASE_USE_CACHE=false
.github/scripts/build-base-image.sh
- name: Push base image
run: docker push ${{ steps.base.outputs.BASE_TAG }}