mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-16 21:24:19 +00:00
buildx added to use a sub-directory
This commit is contained in:
parent
1fd0a3d260
commit
2c3572e9de
12
.github/workflows/create-docker-action.yml
vendored
12
.github/workflows/create-docker-action.yml
vendored
@ -17,7 +17,7 @@ env:
|
|||||||
BACKEND_IMAGE: spiffworkflow-backend
|
BACKEND_IMAGE: spiffworkflow-backend
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-backend-container:
|
build-and-push-backend-docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@ -42,10 +42,16 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
# Setting up Docker Buildx with docker-container driver is required
|
||||||
|
# at the moment to be able to use a subdirectory with Git context
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Build and push Backend Docker Image
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: spiffworkflow-backend/.
|
context: "{{defaultContext}}:spiffworkflow-backend"
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user