From 2e7ce9138b6b1722a345ea6c2de6e8fcd6300712 Mon Sep 17 00:00:00 2001 From: Rob Ballantyne Date: Wed, 28 Feb 2024 14:59:41 +0000 Subject: [PATCH] Update init --- .github/workflows/docker-build.yml | 18 ++++++++++++++++++ .../opt/ai-dock/bin/preflight.d/.gitkeep | 0 build/COPY_ROOT/opt/ai-dock/bin/preflight.sh | 13 ------------- 3 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 build/COPY_ROOT/opt/ai-dock/bin/preflight.d/.gitkeep delete mode 100755 build/COPY_ROOT/opt/ai-dock/bin/preflight.sh diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 8750eea..e76cc73 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -50,6 +50,12 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - + name: Permissions fixes + run: | + reponame="$(basename ${GITHUB_REPOSITORY})" + target="${HOME}/work/${reponame}/${reponame}/build/COPY*" + chmod -R ug+rwX ${target} - name: Login to GitHub Container Registry uses: docker/login-action@v2 @@ -127,6 +133,12 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - + name: Permissions fixes + run: | + reponame="$(basename ${GITHUB_REPOSITORY})" + target="${HOME}/work/${reponame}/${reponame}/build/COPY*" + chmod -R ug+rwX ${target} - name: Login to GitHub Container Registry uses: docker/login-action@v2 @@ -202,6 +214,12 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - + name: Permissions fixes + run: | + reponame="$(basename ${GITHUB_REPOSITORY})" + target="${HOME}/work/${reponame}/${reponame}/build/COPY*" + chmod -R ug+rwX ${target} - name: Login to GitHub Container Registry uses: docker/login-action@v2 diff --git a/build/COPY_ROOT/opt/ai-dock/bin/preflight.d/.gitkeep b/build/COPY_ROOT/opt/ai-dock/bin/preflight.d/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/build/COPY_ROOT/opt/ai-dock/bin/preflight.sh b/build/COPY_ROOT/opt/ai-dock/bin/preflight.sh deleted file mode 100755 index 7613d93..0000000 --- a/build/COPY_ROOT/opt/ai-dock/bin/preflight.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/false - -# This file will be sourced in init.sh - -function preflight_main() { - preflight_do_something -} - -function preflight_do_something() { - printf "Empty preflight.sh...\n" -} - -preflight_main "$@" \ No newline at end of file