Skip to content

Commit 43bd979

Browse files
committed
add workflow to publish devcontainer to docker hub
1 parent 21bbd00 commit 43bd979

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish devcontainer on docker hub
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
publish-devcontainer:
9+
name: Publish devcontainer
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Login to Docker Hub
13+
uses: docker/login-action@v3
14+
with:
15+
username: ${{ secrets.DOCKERHUB_USERNAME }}
16+
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
17+
- name: Install docker buildx
18+
uses: docker/setup-buildx-action@v3
19+
- name: Build and push
20+
uses: docker/build-push-action@v6
21+
with:
22+
file: ./.devcontainer/Dockerfile
23+
push: true
24+
tags: dhglennvl/cpp-devcontainer:latest

0 commit comments

Comments
 (0)