Compare commits

..

4 Commits

Author SHA1 Message Date
3a4773ebce Revert "feat: pass private key as env variable SSH_KEY"
This reverts commit 73f25ab8d2.
2025-05-23 15:15:45 +00:00
b88313f598 Revert "feat: remove key mounts"
This reverts commit b41097d23d.
2025-05-23 15:15:41 +00:00
8375989fd2 feat: add command to update secre key 2025-05-23 12:36:55 +00:00
b41097d23d feat: remove key mounts 2025-05-23 12:25:35 +00:00
2 changed files with 1 additions and 1 deletions

View File

@ -160,6 +160,7 @@ update)
containerfile) update 0 Containerfile . 500 ;;
access) update 2 access.yml . 400 ;;
authorized_keys) update 2 authorized_keys .ssh 400 ;;
secret_key) update 2 keys/"${args[1]}"/id_ed25519 secrets/"${args[1]}" 400 ;;
podman_access)
update 2 podman_access.keys . 400
scp podman_access.keys mypodmanuser@alps:~/.ssh/authorized_keys

View File

@ -125,7 +125,6 @@ start_container_if_needed() {
--user "$DEV_USER" \
--hostname "$WORKSPACE" \
--label auto-cleanup=true \
-e SSH_KEY="$(cat $HOME/secrets/$WORKSPACE/id_ed25519)" \
-v "/mnt/private/workspaces-data/public/$WORKSPACE:/app/public" \
-v "/mnt/private/workspaces-data/private/$WORKSPACE:/app/private" \
-v "$HOME/secrets/$WORKSPACE/gitconfig:/home/$DEV_USER/.gitconfig:ro,Z" \