-
Notifications
You must be signed in to change notification settings - Fork 45
41 lines (34 loc) · 1.06 KB
/
devcontainer-build.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
36
37
38
39
40
41
name: Build and Push Dev Container
on:
push:
branches:
- df/gh-actions
jobs:
netobs-devcontainer:
# permissions: write-all
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: local test
run: |
echo "Hello, World!"
ls -al
echo $PWD
ls -al /home/runner/work/network-observability-lab/network-observability-lab/.devcontainer/devcontainer.json
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
- name: Build and push devcontainer image
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/network-observability/netobs-devcontainer
imageTag: latest
# cacheFrom: ghcr.io/network-observability/netobs-devcontainer
# tags: yourusername/yourrepository:tag # Replace with your Docker image tag
push: always