2024-04-27 09:37:25 +00:00
|
|
|
name: Devcontainer Pre-Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2024-05-14 04:37:10 +00:00
|
|
|
schedule:
|
|
|
|
- cron: "0 3 * * 0"
|
2024-04-27 09:37:25 +00:00
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - "master"
|
|
|
|
# tags:
|
|
|
|
# - "v*.*.*"
|
|
|
|
# pull_requests:
|
|
|
|
# branches:
|
|
|
|
# - "master"
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: "${{ github.workflow }}"
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-push:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
id: checkout
|
2024-04-29 03:43:09 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-04-27 09:37:25 +00:00
|
|
|
-
|
|
|
|
name: Login to GitHub Container Registry
|
2024-04-29 06:41:03 +00:00
|
|
|
uses: docker/login-action@v3
|
2024-04-27 09:37:25 +00:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Pre-build dev container image
|
2024-04-29 03:43:12 +00:00
|
|
|
uses: devcontainers/ci@v0.3
|
2024-04-27 09:37:25 +00:00
|
|
|
with:
|
|
|
|
subFolder: .github
|
|
|
|
imageName: ghcr.io/${{ github.repository }}-devcontainer
|
|
|
|
cacheFrom: ghcr.io/${{ github.repository }}-devcontainer
|
|
|
|
push: always
|