diff --git a/.github/workflows/copy.sh b/.github/workflows/copy.sh new file mode 100644 index 0000000..771e721 --- /dev/null +++ b/.github/workflows/copy.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Chemin du fichier source (à ajuster selon votre dépôt) +SOURCE_FILE=".github/workflows/install.sh" + +# Chemin de destination dans le répertoire stage-install +DESTINATION_DIR="${{ github.workspace }}/${{ inputs.custom-pi-gen-dir }}/stage-install" + +# Copie du fichier +cp $SOURCE_FILE $DESTINATION_DIR \ No newline at end of file diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index a42f03d..38fc12d 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -5,6 +5,7 @@ jobs: pre-release: runs-on: ubuntu-latest steps: + - run: .github/workflows/copy.sh - uses: usimd/pi-gen-action@v1 with: image-name: ucia @@ -19,6 +20,7 @@ jobs: release: buster wpa-essid: 'ucia' wpa-password : 'rosa-ucia' + stage: stage0 stage1 stage2 stage3 stage4 stage-install - uses: actions/upload-artifact@v3 with: name: ucia diff --git a/.github/workflows/install.sh b/.github/workflows/install.sh new file mode 100644 index 0000000..50d5e32 --- /dev/null +++ b/.github/workflows/install.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +sed -i 's/stable\/updates/stable-security\/updates/' /etc/apt/sources.list \ No newline at end of file