Skip to content

Update .github/workflows/release.yml #1

Update .github/workflows/release.yml

Update .github/workflows/release.yml #1

Workflow file for this run

name: "Release devcontainer image"

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

`schedule` accepts a list of one or more maps with the `cron` key set
on:
workflow_dispatch:
schedule:
cron: "0 0 1 * *"
jobs:
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pre-build and publish dev container image
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/fox-it/dissect-devcontainer
cacheFrom: ghcr.io/fox-it/dissect-devcontainer
push: filter
refFilterForPush: refs/heads/main
eventFilterForPush: |
workflow_dispatch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}