File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments