Skip to content

Commit

Permalink
Fix paths to push tarballs remotely
Browse files Browse the repository at this point in the history
  • Loading branch information
elisehaldane committed Jul 30, 2024
1 parent d0e3eaa commit 6018847
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions files/create_qemu_release_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
RELEASE_PIPELINE="${RELEASE_PIPELINE:-0}" # Enable a release pipeline for jail images (pots), default 0
RELEASE_NAME="${RELEASE_NAME:-sibling}" # Set the name of upstream pots
RELEASE_VERSION="${RELEASE_VERSION:-1.0.0}" # Set their release version
SECRET_SOURCE="${SECRET_SOURCE:-azure}" # Default cloud platform
SMB_SHARE="${SMB_SHARE:-/etc/qemu-morello/smbshare}" # Default path to the SMB share
STORAGE_ACCOUNT="${STORAGE_ACCOUNT:-YourStorageAccount}" # Default Azure Storage Account
FILE_SHARE="${FILE_SHARE:-YourFileShare}" # Default Azure File Share

Expand All @@ -19,7 +21,7 @@ handle_error() {
}

export_azure_artefacts() {
pots="${CONFIG_FILE}"/pots
pots="$SMB_SHARE"/pots
if [ ! -d "$pots" ]; then
handle_error "No directory could be found on the guest containing pots."
return 1
Expand All @@ -43,12 +45,12 @@ export_azure_artefacts() {
}

setup_pipeline() {
pipeline=/etc/qemu-morello/smbshare/pipeline.txt
pipeline="$SMB_SHARE"/pipeline.txt
echo RELEASE_PIPELINE="${RELEASE_PIPELINE}" > "$pipeline"
echo RELEASE_NAME="${RELEASE_NAME}" >> "$pipeline"
echo RELEASE_VERSION="${RELEASE_VERSION}" >> "$pipeline"
chmod 600 "$pipeline"
chown -R cheri:cheri /etc/qemu-morello/smbshare
chown -R cheri:cheri "$SMB_SHARE"

if [ "${RELEASE_PIPELINE}" -eq 1 ]; then
log "A pipeline has been configured to release pots via SMB"
Expand Down
1 change: 0 additions & 1 deletion files/update_qemu_morello_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,4 @@ chown -R cheri:cheri /etc/qemu-morello/smbshare
log "GitHub PAT and Org stored securely in smbshare directory."

# Export useful non-secret variables for other services
export CONFIG_FILE
export SECRET_SOURCE

0 comments on commit 6018847

Please sign in to comment.