Skip to content

Commit

Permalink
Workflow Test 19
Browse files Browse the repository at this point in the history
using v2 to setup buildx
Directly pointed build-push-action to Docketfile.
  • Loading branch information
YannRDK committed Jun 9, 2023
1 parent 68a27d2 commit d9777f3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/RoboDK-API.yml
Expand Up @@ -47,11 +47,9 @@ jobs:
if: always()
uses: docker/build-push-action@v2
with:
context: .
file: ${{ github.workspace }}\Python\tests\RoboDK_Dockerfile
context: ${{ github.workspace }}\Python\tests\RoboDK_Dockerfile
push: true
tags: robodk/robodk:latest
cache-from: type=registry,ref=robodk/robodk:latest

- name: Run Tests
run: |
Expand Down Expand Up @@ -104,16 +102,14 @@ jobs:
python -m pip install -r requirements.txt
- name: Setup Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ${{ github.workspace }}\Python\tests\RoboDK_Dockerfile
context: ${{ github.workspace }}\Python\tests\RoboDK_Dockerfile
push: true
tags: robodk/robodk:latest
cache-from: type=registry,ref=robodk/robodk:latest

- name: Run Tests
run: |
Expand Down

0 comments on commit d9777f3

Please sign in to comment.