-
Notifications
You must be signed in to change notification settings - Fork 2k
47 lines (40 loc) · 1.38 KB
/
update-architectures.yml
File metadata and controls
47 lines (40 loc) · 1.38 KB
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
name: update-architectures
on:
# Convert to schedule when done or whatever is preferred
push:
pull_request:
jobs:
update-architectures:
name: update-architectures
runs-on: ubuntu-latest
steps:
- name: Checkout the docker-node repo
uses: actions/checkout@v2
with:
path: docker-node
- name: Checkout the official-images repo
uses: actions/checkout@v2
with:
path: official-images
repository: docker-library/official-images
- name: Download bashbrew
run: |
mkdir -p ${GITHUB_WORKSPACE}/bin
wget --no-verbose -O ${GITHUB_WORKSPACE}/bin/bashbrew https://doi-janky.infosiftr.net/job/bashbrew/job/master/lastSuccessfulBuild/artifact/bashbrew-amd64
sudo chmod +x ${GITHUB_WORKSPACE}/bin/bashbrew
echo "::add-path::${GITHUB_WORKSPACE}/bin"
- name: Update architectures
uses: actions/github-script@v3
id: arch-updater
env:
BASHBREW_LIBRARY: "${{ github.workspace }}/official-images/library"
with:
script: |
const script = require(`${process.env.GITHUB_WORKSPACE}/docker-node/updateArches.js`)
return script();
- name: Open a PR
if: steps.arch-updater.outputs.result == 'true'
# TODO: open a PR
run: |
cd docker-node
git diff --exit-code