-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 899 Bytes
/
devcontainer.yml
File metadata and controls
36 lines (30 loc) · 899 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
33
34
35
36
name: Build devcontainer image
on:
push:
branches: [main]
paths:
- '.devcontainer/**'
- 'pyproject.toml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Compute lowercase image name
run: echo "IMAGE=ghcr.io/$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')/markdown-keeper-devcontainer" >> "$GITHUB_ENV"
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push devcontainer
uses: devcontainers/ci@v0.3
with:
imageName: ${{ env.IMAGE }}
cacheFrom: ${{ env.IMAGE }}:latest
push: always