-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 996 Bytes
/
devcontainer.yml
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
33
34
35
name: Build a dev container image
on:
workflow_dispatch: # Manual trigger
schedule:
- cron: "30 17 * * 0"
push:
branches:
- main
paths:
- .devcontainer/**
- .github/workflows/devcontainer.yml
jobs:
build-and-push:
name: Build and push dev container image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install Dev Container CLI
run: npm install -g @devcontainers/cli
- name: Build and push ghcr.io/sliekens/gw2sdk/devcontainer
run: devcontainer build --no-cache --image-name ghcr.io/sliekens/gw2sdk/devcontainer --push --workspace-folder . --config .devcontainer/devcontainer-build.json