Skip to content

Commit

Permalink
continue
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneSchmitz committed Dec 2, 2023
1 parent e96dab3 commit a200e5f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
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"
# DESTINATION_DIR="$1/stage-install"

# Copie du fichier
cp $SOURCE_FILE $DESTINATION_DIR
# # echo ${{github.workspace}}
# ls -la
# # Copie du fichier
# cp $SOURCE_FILE $DESTINATION_DIR

mkdir -p stage-install/
cp $SOURCE_FILE stage-install/prerun.sh
chmod +x stage-install/prerun.sh

# ls ./stage-install
10 changes: 6 additions & 4 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,24 @@ jobs:
pre-release:
runs-on: ubuntu-latest
steps:
- run: .github/workflows/copy.sh
- uses: actions/checkout@v3
- name: Copy install files in stage
run: .github/workflows/copy.sh ${{ github.workspace }}/${{ inputs.custom-pi-gen-dir }}
- uses: usimd/pi-gen-action@v1
with:
image-name: ucia
verbose-output: true
enable-ssh: 1
# keyboard-keymap: fr
# # keyboard-layout:
# keyboard-layout:
disable-first-boot-user-rename: 1
hostname: ucia
username: pi
password: 'rosa'
release: buster
wpa-essid: 'ucia'
wpa-password : 'rosa-ucia'
stage: stage0 stage1 stage2 stage3 stage4 stage-install
# timezone: Europe/Paris
stage-list: stage-install stage0 stage1 stage2 stage3 stage4
- uses: actions/upload-artifact@v3
with:
name: ucia
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

ls

sed -i 's/stable\/updates/stable-security\/updates/' /etc/apt/sources.list

0 comments on commit a200e5f

Please sign in to comment.