mirror of https://github.com/buster-so/buster.git
Fix Docker context paths in GitHub workflows - change ./api to ./apps/api
Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
This commit is contained in:
parent
152825758b
commit
9e461f9948
|
@ -31,8 +31,8 @@ jobs:
|
||||||
- name: Build and Load API Docker Image
|
- name: Build and Load API Docker Image
|
||||||
uses: useblacksmith/build-push-action@v1
|
uses: useblacksmith/build-push-action@v1
|
||||||
with:
|
with:
|
||||||
context: ./api
|
context: ./apps/api
|
||||||
file: ./api/Dockerfile
|
file: ./apps/api/Dockerfile
|
||||||
push: false # Do not push, load locally for service container
|
push: false # Do not push, load locally for service container
|
||||||
load: true # Load the image into the runner's Docker daemon
|
load: true # Load the image into the runner's Docker daemon
|
||||||
tags: local-api-test:latest # Tag for the service definition
|
tags: local-api-test:latest # Tag for the service definition
|
||||||
|
|
|
@ -103,8 +103,8 @@ jobs:
|
||||||
- name: Build and push API image
|
- name: Build and push API image
|
||||||
uses: useblacksmith/build-push-action@v1
|
uses: useblacksmith/build-push-action@v1
|
||||||
with:
|
with:
|
||||||
context: ./api
|
context: ./apps/api
|
||||||
file: ./api/Dockerfile
|
file: ./apps/api/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
platforms: ${{ matrix.docker_platform }}
|
platforms: ${{ matrix.docker_platform }}
|
||||||
tags: |
|
tags: |
|
||||||
|
@ -199,4 +199,4 @@ jobs:
|
||||||
else
|
else
|
||||||
echo "Failed to set package $ORG_NAME/${{ env.WEB_IMAGE_NAME }} visibility to public. HTTP Status: $RESPONSE_CODE"
|
echo "Failed to set package $ORG_NAME/${{ env.WEB_IMAGE_NAME }} visibility to public. HTTP Status: $RESPONSE_CODE"
|
||||||
# Optionally, fail the step: exit 1
|
# Optionally, fail the step: exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -69,8 +69,8 @@ jobs:
|
||||||
- name: Build & Load API Docker Image
|
- name: Build & Load API Docker Image
|
||||||
uses: useblacksmith/build-push-action@v1
|
uses: useblacksmith/build-push-action@v1
|
||||||
with:
|
with:
|
||||||
context: ./api
|
context: ./apps/api
|
||||||
file: ./api/Dockerfile
|
file: ./apps/api/Dockerfile
|
||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
tags: local-api-test:latest
|
tags: local-api-test:latest
|
||||||
|
@ -199,4 +199,4 @@ jobs:
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
docker stop local-api
|
docker stop local-api
|
||||||
docker rm local-api
|
docker rm local-api
|
||||||
|
|
Loading…
Reference in New Issue