File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 19
19
id : checkout
20
20
uses : actions/checkout@v1
21
21
22
+ - name : Log in to GitHub Container Registry
23
+ uses : docker/login-action@v2
24
+ with :
25
+ registry : ghcr.io
26
+ username : ${{ github.actor }}
27
+ password : ${{ secrets.GITHUB_TOKEN }}
28
+
29
+ - name : Set up QEMU
30
+ uses : docker/setup-qemu-action@v1
31
+
32
+ - name : Set up Docker Buildx
33
+ id : buildx
34
+ uses : docker/setup-buildx-action@v1
35
+
22
36
- name : Prepare DevPod
23
37
run : |
24
38
curl -L -o devpod "https://github.com/loft-sh/devpod/releases/latest/download/devpod-linux-amd64" \
@@ -29,13 +43,13 @@ jobs:
29
43
- name : " Build and push image"
30
44
run : |
31
45
devpod build . --devcontainer-path .github/devcontainer/devcontainer.json --platform linux/amd64,linux/arm64 --skip-push
32
- # Change tag to `latest`
33
46
ID=$(docker images --format "{{.ID}} {{.CreatedAt}} {{.Tag}}" | sort -rk 2 | grep "devpod" | awk 'NR==1{print $1}')
34
47
echo "found image: $ID"
35
48
if [ -z "${ID}" ]; then
36
49
echo "Image ID empty, exiting"
37
50
exit 0
38
51
fi
52
+ # Change tag to `dev`
39
53
docker image ls
40
54
docker tag $ID ghcr.io/loft-sh/devpod:dev
41
55
docker push ghcr.io/loft-sh/devpod:dev
You can’t perform that action at this time.
0 commit comments