Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,75 @@ jobs:
- name: list packages
run: timeout 150 bash -c -- 'z=0 ; until [ $z -ge 1 ]; do z=$(sudo apt list --installed | grep zsh | wc -l); done'

ssh-validate:
runs-on: ubuntu-latest
needs: [ build, pull-and-archive ]
steps:
- uses: actions/checkout@v2

- name: pull in podman
uses: actions/download-artifact@v1
with:
name: podman-bins
path: bin

- name: replace
run: |
chmod +x bin/podman
sudo mv bin/podman /usr/bin/podman
- name: Enable the podman socket
run: sudo systemctl enable --now podman.socket

- name: pull artifact
uses: actions/download-artifact@v1
with:
name: fetchit-image
path: /tmp

- name: pull artifact
uses: actions/download-artifact@v1
with:
name: colors
path: /tmp

- name: Load the image
run: sudo podman load -i /tmp/fetchit.tar

- name: Load the image
run: sudo podman load -i /tmp/colors.tar

- name: tag the image
run: sudo podman tag quay.io/fetchit/fetchit-amd:latest quay.io/fetchit/fetchit:latest

- name: generate ssh assets
run: |
mkdir ~/.ssh
echo "${{secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan github.com > ~/.ssh/known_hosts
chmod 600 ~/.ssh/id_rsa
mkdir ~/.fetchit
cp -rp ~/.ssh ~/.fetchit/
cp ./examples/ssh-config.yaml ~/.fetchit/config.yaml
- name: Start fetchit
run: sudo podman run -d --name fetchit -v fetchit-volume:/opt -v /home/runner/.fetchit:/opt/mount -v ~/.ssh:/opt/mount/.ssh -v /run/podman/podman.sock:/run/podman/podman.sock --security-opt label=disable quay.io/fetchit/fetchit-amd:latest

- name: List fetchit files
run: sudo ls -la ~/.fetchit

- name: List ssh files
run: sudo ls -la ~/.fetchit/.ssh

- name: check for file
run: timeout 150 bash -c "until [ -f /tmp/hello.txt ]; do sleep 2; done"

- name: check for file
run: timeout 150 bash -c "until [ -f /tmp/anotherfile.txt ]; do sleep 2; done"

- name: Logs
if: always()
run: sudo podman logs fetchit


systemd-validate-exact-file:
runs-on: ubuntu-latest
needs: [ build , pull-and-archive ]
Expand Down
2 changes: 1 addition & 1 deletion examples/full-suite-disconnected.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
targetConfigs:
- disconnected: true
url: http://localhost:9000/fetchit.zip
url: https://localhost:9000/fetchit.zip
raw:
- name: raw-ex
targetPath: examples/raw
Expand Down
2 changes: 1 addition & 1 deletion examples/imageLoad-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
images:
- name: httpd-ex
url: http://localhost:8080/httpd.tar
url: https://localhost:8080/httpd.tar
schedule: "*/1 * * * *"
targetConfigs:
- url: https://github.com/containers/fetchit
Expand Down