Docker Hub #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v6 | |
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 }}). |