Skip to content

Commit 693d5ad

Browse files
committed
added workflow
1 parent 46c52ae commit 693d5ad

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Push Labspace
2+
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build-and-push:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
# Ensure Compose v2.39.3+ is available (includes bug fixes for publishing)
17+
# Can remove this action once default runners include it
18+
- name: Set up Docker Compose
19+
uses: docker/setup-compose-action@v1
20+
with:
21+
version: v2.39.3
22+
23+
- name: Log in to DockerHub
24+
uses: docker/login-action@v3
25+
with:
26+
username: ${{ secrets.DOCKERHUB_USERNAME }}
27+
password: ${{ secrets.DOCKERHUB_TOKEN }}
28+
29+
- name: Publish Compose file
30+
run: |
31+
docker compose -f oci://dockersamples/labspace -f .labspace/compose.override.yaml publish dockersamples/labspace-cagent --with-env -y
32+
env:
33+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}

0 commit comments

Comments
 (0)