-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: make package updates a separate workflow step
Signed-off-by: Steven Noonan <steven@valvesoftware.com>
- Loading branch information
Steven Noonan
committed
Feb 6, 2021
1 parent
b7f2279
commit b9f3cea
Showing
18 changed files
with
91 additions
and
38 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,28 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
ACTION="$(basename "$0")" | ||
ACTION="${ACTION%.sh}" | ||
|
||
SCRIPT_CANDIDATES=( | ||
"$PWD/.github/${ACTION}/${IMAGE//\//-}.sh" | ||
"$PWD/.github/${ACTION}/${IMAGE%/*}.sh" | ||
) | ||
|
||
for SCRIPT in "${SCRIPT_CANDIDATES[@]}"; do | ||
if [[ -f "${SCRIPT}" ]]; then | ||
bash "${SCRIPT}" | cat | ||
exit $? | ||
fi | ||
done | ||
|
||
echo "Could not find script in any of these paths:" | ||
for SCRIPT in "${SCRIPT_CANDIDATES[@]}"; do | ||
echo " ${SCRIPT}" | ||
done | ||
echo "" | ||
echo "Don't know how to do step '${ACTION}' for ${IMAGE}!" | ||
echo "" | ||
exit 1 |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
action.sh |
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 |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
# | ||
set -ex | ||
|
||
apk update | ||
|
||
# Base build packages | ||
PACKAGES=( | ||
clang | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ubuntu.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
action.sh |
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,9 @@ | ||
#!/bin/bash | ||
# | ||
# This is an install script for Alpine-specific package updates. | ||
# | ||
set -ex | ||
|
||
apk update | ||
|
||
exit 0 |
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,9 @@ | ||
#!/bin/bash | ||
# | ||
# This is an install script for Arch Linux-specific package updates. | ||
# | ||
set -ex | ||
|
||
pacman --noconfirm -Syu | ||
|
||
exit 0 |
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 @@ | ||
ubuntu.sh |
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,14 @@ | ||
#!/bin/bash | ||
# | ||
# This is an install script for Fedora-specific package updates. | ||
# | ||
set -ex | ||
|
||
if ! grep '^fastestmirror' /etc/dnf/dnf.conf; then | ||
echo 'fastestmirror=1' >> /etc/dnf/dnf.conf | ||
fi | ||
|
||
dnf clean all | ||
dnf update -y | ||
|
||
exit 0 |
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,9 @@ | ||
#!/bin/bash | ||
# | ||
# This is an install script for OpenSuSE-specific package updates. | ||
# | ||
set -ex | ||
|
||
zypper update -y | ||
|
||
exit 0 |
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,14 @@ | ||
#!/bin/bash | ||
# | ||
# This is an install script for Debian/Ubuntu-specific package updates. | ||
# | ||
set -ex | ||
|
||
APT_FLAGS=(-q -oDpkg::Use-Pty=0) | ||
|
||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
apt-get ${APT_FLAGS[@]} update | ||
apt-get ${APT_FLAGS[@]} dist-upgrade -y | ||
|
||
exit 0 |
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