-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (42 loc) · 1.19 KB
/
devcontainer.yaml
File metadata and controls
46 lines (42 loc) · 1.19 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
44
45
46
name: DevContainer CI/CD
on:
push:
paths:
- '.github/.devcontainer/**'
branches:
- main
pull_request:
paths:
- '.github/.devcontainer/**'
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
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
with:
imageName: ghcr.io/sonikro/tf2-quickserver-devcontainer
cacheFrom: ghcr.io/sonikro/tf2-quickserver-devcontainer
subFolder: .github
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'always' || 'never' }}
runCmd: |
node --version
npm --version
terraform --version
go version
aws --version
docker --version