-
-
Notifications
You must be signed in to change notification settings - Fork 42
58 lines (49 loc) · 1.63 KB
/
hub.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
# https://docs.github.com/actions
name: Docker Hub
on:
workflow_dispatch:
jobs:
stackbrew:
name: Stackbrew
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: dist
- name: Download bashbrew
run: |
wget https://doi-janky.infosiftr.net/job/bashbrew/job/master/lastSuccessfulBuild/artifact/bashbrew-amd64
mkdir -p "$HOME/.local/bin"
mv bashbrew-amd64 "$HOME/.local/bin/bashbrew"
chmod +x "$HOME/.local/bin/bashbrew"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
bashbrew --version
- name: Generate stackbrew
run: bash ./bin/generate-stackbrew-library.sh > yourls
- uses: actions/upload-artifact@v4
with:
name: stackbrew
path: yourls
submit:
name: Submit
runs-on: ubuntu-latest
needs:
- stackbrew
steps:
- uses: actions/checkout@v4
with:
repository: docker-library/official-images
- uses: actions/download-artifact@v4
with:
name: stackbrew
path: library
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.PAT_OI_PR }}
push-to-fork: YOURLS/docker-library-official-images
commit-message: Update YOURLS
title: Update YOURLS
delete-branch: true
body: |
Automated changes from [${{ github.repository }}](https://github.com/${{ github.repository }}) via [GitHub Actions run #${{ github.run_id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).