File tree Expand file tree Collapse file tree 4 files changed +21
-10
lines changed
Expand file tree Collapse file tree 4 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -328,8 +328,8 @@ jobs:
328328 with :
329329 # Since we need the cargo workspace, we need to make the repo root the context
330330 context : ./images/fcos-skate
331- push : true
332- build-args : VERSION=${{ github.ref_name }}
331+ push : false
332+ # build-args: VERSION=${{ github.ref_name }}
333333 tags : ${{ steps.meta.outputs.tags }}
334334 labels : ${{ steps.meta.outputs.labels }}
335335 file : ./images/fcos-skate/ContainerFile
Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ if [[ -n "${DEBUG:-}" ]]; then
77fi
88
99INSTALL_PATH=${INSTALL_PATH:-/ usr/ local/ bin}
10- VERSION=${VERSION:- latest}
10+ VERSION=${VERSION:- }
11+
12+ if [[ -z " $VERSION " ]]; then
13+ URL_SUFFIX=" latest"
14+ else
15+ URL_SUFFIX=" tags/$VERSION "
16+ fi
1117
1218os=$( uname -o)
1319arch=$( uname -m)
4349
4450get_install_alternatives (){
4551 # shellcheck disable=SC2068
46- output=$( curl ${EXTRA_ARGS[@]+" ${EXTRA_ARGS[@]} " } -f --retry 5 --retry-max-time 30 --retry-all-errors --silent " https://api.github.com/repos/skateco/skate/releases/${VERSION } " )
52+ output=$( curl ${EXTRA_ARGS[@]+" ${EXTRA_ARGS[@]} " } -f --retry 5 --retry-max-time 30 --retry-all-errors --silent " https://api.github.com/repos/skateco/skate/releases/${URL_SUFFIX } " )
4753
4854 echo " $output " \
4955 | grep " browser_download_url.*tar.gz" \
Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ if [[ -n "${DEBUG:-}" ]]; then
77fi
88
99INSTALL_PATH=${INSTALL_PATH:-/ usr/ local/ bin}
10- VERSION=${VERSION:- latest}
10+ VERSION=${VERSION:- }
11+
12+ if [[ -z " $VERSION " ]]; then
13+ URL_SUFFIX=" latest"
14+ else
15+ URL_SUFFIX=" tags/$VERSION "
16+ fi
1117
1218os=$( uname -o)
1319arch=$( uname -m)
4349
4450get_install_alternatives (){
4551 # shellcheck disable=SC2068
46- output=$( curl ${EXTRA_ARGS[@]+" ${EXTRA_ARGS[@]} " } -f --retry 5 --retry-max-time 30 --retry-all-errors --silent " https://api.github.com/repos/skateco/skate/releases/${VERSION } " )
52+ output=$( curl ${EXTRA_ARGS[@]+" ${EXTRA_ARGS[@]} " } -f --retry 5 --retry-max-time 30 --retry-all-errors --silent " https://api.github.com/repos/skateco/skate/releases/${URL_SUFFIX } " )
4753
4854 echo " $output " \
4955 | grep " browser_download_url.*tar.gz" \
@@ -80,5 +86,5 @@ tar -xvf skatelet.tar.gz
8086sudo mv skatelet " ${INSTALL_PATH} /skatelet"
8187sudo chmod +x " ${INSTALL_PATH} /skatelet"
8288
83- echo " Skate installed successfully in ${INSTALL_PATH} "
89+ echo " Skatelet installed successfully in ${INSTALL_PATH} "
8490
Original file line number Diff line number Diff line change @@ -2,13 +2,12 @@ FROM quay.io/fedora/fedora-coreos:stable
22
33ARG VERSION
44
5- RUN echo "Running rpm install" && \
6- dnf install -y \
5+ RUN dnf install -y \
76 rsyslog \
87 wget \
98 keepalived && \
109 # set registry short name mode to permissive
1110 sed -i 's|^[\#]\?short-name-mode\s\?=.*|short-name-mode=\"permissive\"|g' /etc/containers/registries.conf && \
1211 wget -O /tmp/install-skatelet.sh https://raw.githubusercontent.com/skateco/skate/refs/heads/main/hack/install-skatelet.sh && \
13- INSTALL_PATH=/usr/sbin VERSION=$VERSION bash /tmp/install-skatelet.sh && \
12+ DEBUG=1 INSTALL_PATH=/usr/sbin VERSION=$VERSION bash /tmp/install-skatelet.sh && \
1413 ostree container commit
You can’t perform that action at this time.
0 commit comments