-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.06 KB
/
devcontainer-release.yml
File metadata and controls
43 lines (37 loc) · 1.06 KB
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
36
37
38
39
40
41
42
43
name: Dev Container Release
on:
push:
branches:
- main
paths:
- '.devcontainer/Dockerfile'
- '.devcontainer/devcontainer.json'
- '.github/workflows/devcontainer-release.yml'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Set git default branch
run: |
git config --global init.defaultBranch main
git config --global advice.detachedHead false
- name: Checkout repository
uses: actions/checkout@v6
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Dev Container
uses: devcontainers/ci@v0.3
env:
CI: true
with:
imageName: ghcr.io/${{ github.repository }}/docgraph-dev
cacheFrom: ghcr.io/${{ github.repository }}/docgraph-dev
push: always