-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13556 from infosiftr/bashbrew-0.1.5
Update bashbrew to 0.1.5 (and use the new bashbrew action)
- Loading branch information
Showing
8 changed files
with
72 additions
and
250 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# https://github.com/docker-library/official-images/pull/13556#issuecomment-1319181339 🙈 | ||
name: 'Shared Bashbrew Action' | ||
description: 'Install the same version of Bashbrew consistently in all other GitHub Actions' | ||
inputs: | ||
build: | ||
default: 'host' # or 'docker' or 'none' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
# these two version numbers are intentionally as close together as I could possibly get them because no matter what I tried, GitHub will not allow me to DRY them (can't have any useful variables in `uses:` and can't even have YAML references to steal it in `env:` or something) | ||
- shell: 'bash -Eeuo pipefail -x {0}' | ||
run: echo BASHBREW_VERSION=v0.1.5 >> "$GITHUB_ENV" | ||
- uses: docker-library/bashbrew@v0.1.5 | ||
if: inputs.build == 'host' | ||
|
||
- run: docker build --pull --tag oisupport/bashbrew:base "https://github.com/docker-library/bashbrew.git#$BASHBREW_VERSION" | ||
shell: 'bash -Eeuo pipefail -x {0}' | ||
if: inputs.build == 'docker' |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuo pipefail | ||
|
||
# | ||
# usage: | ||
# $ ./pr-urls.sh PR-NUMBER | ||
# $ ./pr-urls.sh PR-NUMBER IMAGE1 IMAGE2:TAG1 IMAGE3:TAG2 | ||
# | ||
# $ ./pr-urls.sh 12072 | ||
# $ ./pr-urls.sh 12072 hello-world:linux | ||
# $ ./pr-urls.sh 12072 | xargs -rt bashbrew build | ||
# $ ./pr-urls.sh 12072 | xargs -rt bashbrew list --uniq | ||
# $ ./pr-urls.sh 12072 | xargs -rt bashbrew list --uniq | xargs -rt ./test/run.sh | ||
# | ||
# (rough replacement for the old "test-pr.sh" script and its associated complexity) | ||
# | ||
|
||
pr="$1" | ||
shift | ||
|
||
patch="$(wget -qO- "https://github.com/docker-library/official-images/pull/$pr.patch")" | ||
|
||
commit="$(grep <<<"$patch" -oE '^From [0-9a-f]+ ' | tail -1 | cut -d' ' -f2)" | ||
|
||
if [ "$#" -eq 0 ]; then | ||
files="$(grep <<<"$patch" -oE '^[+]{3} b/library/.+' | cut -d/ -f3 | sort -u)" | ||
set -- $files | ||
fi | ||
|
||
for file; do | ||
echo "https://github.com/docker-library/official-images/raw/$commit/library/$file" | ||
done |
Oops, something went wrong.