chore(docker): backend/frontend
This commit is contained in:
parent
9bb1f2068f
commit
5ebf2043c1
1 changed files with 27 additions and 8 deletions
|
@ -34,21 +34,40 @@ jobs:
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.CI_TOKEN }}
|
password: ${{ secrets.CI_TOKEN }}
|
||||||
|
|
||||||
- name: Get Meta
|
- name: Get Meta for frontend
|
||||||
id: meta
|
id: meta_frontend
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: git.depeuter.dev/${{ github.repository }}
|
images: git.depeuter.dev/${{ github.repository }}/frontend
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push frontend
|
||||||
id: docker_build
|
id: docker_build_frontend
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: ./frontend
|
||||||
file: ./frontend/Dockerfile
|
file: ./frontend/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
- name: Image digest
|
- name: Get Meta for backend
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
id: meta_backend
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: git.depeuter.dev/${{ github.repository }}/backend
|
||||||
|
|
||||||
|
- name: Build and push backend
|
||||||
|
id: docker_build_backend
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: ./backend
|
||||||
|
file: ./backend/Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
- name: Frontend image digest
|
||||||
|
run: echo ${{ steps.docker_build_frontend.outputs.digest }}
|
||||||
|
|
||||||
|
- name: Backend image digest
|
||||||
|
run: echo ${{ steps.docker_build_backend.outputs.digest }}
|
||||||
|
|
Reference in a new issue