forked from fossasia/badgemagic-app
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 874 Bytes
/
devcontainer.yml
File metadata and controls
32 lines (27 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build Dev Container
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
devcontainer:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v5
- name: Lowercase repository owner
run: echo "REPO_OWNER_LOWER=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ env.REPO_OWNER_LOWER }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pre-build dev container image
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/${{ env.REPO_OWNER_LOWER }}/flutter-devcontainer
imageTag: latest
cacheFrom: ghcr.io/${{ env.REPO_OWNER_LOWER }}/flutter-devcontainer:latest
push: always