ssh-ci-runner-cron.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Regenerate ssh ci runner image
  2. on:
  3. # pull_request:
  4. # branches: ["main"]
  5. schedule:
  6. - cron: "0 0 1,8,15,22 * *"
  7. workflow_dispatch:
  8. permissions:
  9. pull-requests: write
  10. contents: write
  11. packages: write
  12. jobs:
  13. ssh-ci-rebuild:
  14. if: github.repository == 'TecharoHQ/anubis'
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Checkout code
  18. uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
  19. with:
  20. fetch-tags: true
  21. fetch-depth: 0
  22. persist-credentials: false
  23. - name: Log into registry
  24. uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
  25. with:
  26. registry: ghcr.io
  27. username: ${{ github.repository_owner }}
  28. password: ${{ secrets.GITHUB_TOKEN }}
  29. - name: Set up Docker Buildx
  30. uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
  31. - name: Build and push
  32. run: |
  33. cd ./test/ssh-ci
  34. docker buildx bake --push