Skip to content

Commit 7a07e2e

Browse files
authored
Update docker-image.yml
1 parent 6a334e0 commit 7a07e2e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/docker-image.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,22 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v1
21+
1622
- name: Login to Docker Hub
1723
run: echo ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
1824

1925
- name: Build FastApi and push Docker image
2026
run: |
2127
docker buildx create --use
2228
docker buildx build \
23-
--file ./Dockerfile \
29+
--file Dockerfile \
2430
--tag ${{ secrets.DOCKERHUB_USERNAME }}/fastapi-crud:latest \
2531
--push .
26-
32+
env:
33+
DOCKER_CLI_EXPERIMENTAL: enabled
34+
DOCKER_BUILDKIT: 1

0 commit comments

Comments
 (0)