Skip to content

Commit 51c4802

Browse files
Use docker compose to build
1 parent fc6bf6e commit 51c4802

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/docker-image.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ jobs:
3434
if: github.event_name == 'workflow_dispatch'
3535
run: echo "LATEST_TAG=$(git tag | sort --version-sort | tail -n1)" >> $GITHUB_ENV
3636

37-
- name: Set up Docker Buildx
38-
id: buildx
39-
uses: docker/setup-buildx-action@v3
40-
4137
- name: Log in to GitHub Docker Registry
4238
if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch'
4339
uses: docker/login-action@v3
@@ -46,19 +42,11 @@ jobs:
4642
username: ${{ github.actor }}
4743
password: ${{ secrets.GITHUB_TOKEN }}
4844

49-
- name: Build and export to Docker local cache
50-
uses: docker/build-push-action@v6
51-
env:
52-
DOCKER_BUILD_RECORD_UPLOAD: false
53-
with:
54-
context: ./docker
55-
# Need load and tags so we can test it below
56-
load: true
57-
tags: tag_for_testing
58-
network: host
45+
- name: Build
46+
run: docker compose build
5947

60-
- name: Test cli works in cached runtime image
61-
run: docker run docker.io/library/tag_for_testing --version
48+
- name: Check on built image
49+
run: docker images | grep -c pvws
6250

6351
- name: Create tags for publishing image
6452
id: meta

0 commit comments

Comments
 (0)