Skip to content

Commit

Permalink
Merge pull request #109 from MusicDin/fix/upload
Browse files Browse the repository at this point in the history
Debug image upload
  • Loading branch information
tomponline authored Mar 22, 2024
2 parents e13b5ed + 6b080b7 commit 5ef1886
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/actions/image-upload/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ runs:
# Configure known host.
echo "${SSH_HOST} ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOJS6V7WpVdFdAcTSn/98rBRsvJVyTI3O17qMeg0cD5E" >> ~/.ssh/known_hosts
- name: Debug
shell: bash
run: |
echo "==> wget"
wget -qO - https://ip.sdeziel.info
echo "==> ip a"
ip a
echo "==> nc"
nc -w 1 -zv images.lxd.canonical.com 922
- name: Upload artifacts to the image server
shell: bash
env:
Expand Down Expand Up @@ -60,4 +73,4 @@ runs:
# s -> Uses SFTP protocol
# r -> Copies files recursively
# p -> Preserves modification and access times
scp -srp -P ${SSH_PORT} ${SRC_DIR}-upload/* "${SSH_USER}@${SSH_HOST}:."
scp -srp -P ${SSH_PORT} ${SRC_DIR}-upload/* "${SSH_USER}@${SSH_HOST}:"
4 changes: 4 additions & 0 deletions .github/workflows/image-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,7 @@ jobs:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
ssh_private_key: "${{ secrets.LXD_INFRA_IMAGES_KEY }}"

- name: (DEBUG) Tmate
if: failure()
uses: mxschmitt/action-tmate@v3

0 comments on commit 5ef1886

Please sign in to comment.