update #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update | |
on: | |
schedule: | |
# Run Monday at 4:00 UTC | |
- cron: "0 4 * * 1" | |
jobs: | |
deploy: | |
name: "Update dependencies" | |
environment: stable | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup SSH | |
uses: ./.github/workflows/setup-ssh | |
with: | |
ssh-key: ${{ secrets.AUTH_SSH_KEY }} | |
username: ${{ secrets.AUTH_SSH_USER }} | |
host-key: ${{ vars.HOST_PUBLIC_KEY }} | |
host-name: ${{ vars.HOST }} | |
- name: Run command | |
shell: bash | |
run: | | |
ssh try_vyper bash <<EOF | |
apt-get update | |
apt-get upgrade -y | |
docker system prune --force --all --volumes | |
EOF |