Skip to content

Commit f4c0531

Browse files
committed
ci: auto build docker images
1 parent 415e46e commit f4c0531

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/publish-dragonos-docker-image.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
push:
66
paths:
77
- tools/BUILD_CONTAINER_VERSION
8+
branches:
9+
- master
10+
pull_request:
11+
branches: ["master"]
812

913
jobs:
1014
docker:
@@ -13,11 +17,11 @@ jobs:
1317
- name: Set up Docker Buildx
1418
uses: docker/setup-buildx-action@v2
1519

16-
- name: Login to Docker Hub
17-
uses: docker/login-action@v2
18-
with:
19-
username: ${{ secrets.DOCKERHUB_USERNAME }}
20-
password: ${{ secrets.DOCKERHUB_TOKEN }}
20+
# - name: Login to Docker Hub
21+
# uses: docker/login-action@v2
22+
# with:
23+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
# password: ${{ secrets.DOCKERHUB_TOKEN }}
2125

2226
- uses: actions/checkout@v4
2327

@@ -30,8 +34,8 @@ jobs:
3034
- name: Build and push docker image
3135
uses: docker/build-push-action@v4
3236
with:
33-
context: .
34-
file: ./tools/Dockerfile
37+
context: ./tools
38+
file: ./Dockerfile
3539
platforms: linux/amd64
3640
push: true
3741
tags: dragonos/dragonos-dev:${{ steps.fetch-versions.outputs.build_container_version }}

0 commit comments

Comments
 (0)