Skip to content

Update GitHub Runners #947

Update GitHub Runners

Update GitHub Runners #947

name: Update GitHub Runners
on:
schedule:
- cron: "0 1 * * *"
jobs:
push_image:
name: Update docker GitHub action runner image
runs-on: amd64-runner
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker system prune
run: docker system prune -f
- name: Install deps
run: yarn
- name: Prepare
run: yarn nx run-many --target=prepare --all
env:
ONEPASSWORD_TOKEN: ${{ secrets.ONEPASSWORD_TOKEN }}
ONEPASSWORD_SERVER_URL: ${{ secrets.ONEPASSWORD_SERVER_URL }}
ONEPASSWORD_VAULT_ID: ${{ secrets.ONEPASSWORD_VAULT_ID }}
- name: Build/push docker image
run: yarn run image/push github-action-runners
env:
ONEPASSWORD_TOKEN: ${{ secrets.ONEPASSWORD_TOKEN }}
ONEPASSWORD_SERVER_URL: ${{ secrets.ONEPASSWORD_SERVER_URL }}
ONEPASSWORD_VAULT_ID: ${{ secrets.ONEPASSWORD_VAULT_ID }}