Skip to content

Commit 09e694c

Browse files
committed
Changing workflows
1 parent 8eb9a5c commit 09e694c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/docker-image.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- name: Install dependencies
1818
run: |
19-
apt-get update && apt-get install -y python3-pip
19+
apt-get update && apt-get install -y python3-pip docker-compose
2020
pip3 install cookiecutter
2121
- name: Generate project files with cookiecutter
2222
run: cookiecutter --no-input .
23-
- name: Build the Docker image
24-
run: cd python-project-example && docker build . --file Dockerfile --tag my-image-name:$(date +%s)
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
- name: Build and test
26+
uses: docker/build-push-action@v5
27+
with:
28+
context: .
29+
file: ./python-project-example/Dockerfile
30+
push: false
31+

0 commit comments

Comments
 (0)