WIP proxy #3
@@ -16,16 +16,6 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Extract Tag Name
|
|
||||||
uses: olegtarasov/get-tag@v2.1.4
|
|
||||||
id: tagName
|
|
||||||
|
|
||||||
- name: Echo branch name
|
|
||||||
run: echo "${{ env.BRANCH_NAME }}"
|
|
||||||
|
|
||||||
#- name: Setup QEMU
|
|
||||||
# uses: docker/setup-qemu-action@v3
|
|
||||||
|
|
||||||
- name: Setup Buildx
|
- name: Setup Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -45,7 +35,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: frontend
|
context: frontend
|
||||||
push: true
|
push: false
|
||||||
tags: ${{ secrets.REGISTRY_URL }}/${{ env.DOCKER_ORG }}/frontend-analytics-demo:${{ env.BRANCH_NAME }}
|
tags: ${{ secrets.REGISTRY_URL }}/${{ env.DOCKER_ORG }}/frontend-analytics-demo:${{ env.BRANCH_NAME }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
file: frontend/Dockerfile
|
file: frontend/Dockerfile
|
||||||
@@ -54,7 +44,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: backend
|
context: backend
|
||||||
push: true
|
push: false
|
||||||
tags: ${{ secrets.REGISTRY_URL }}/${{ env.DOCKER_ORG }}/backend-analytics-demo:${{ env.BRANCH_NAME }}
|
tags: ${{ secrets.REGISTRY_URL }}/${{ env.DOCKER_ORG }}/backend-analytics-demo:${{ env.BRANCH_NAME }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
file: backend/Dockerfile
|
file: backend/Dockerfile
|
||||||
|
|||||||
@@ -13,3 +13,37 @@ jobs:
|
|||||||
id: tagName
|
id: tagName
|
||||||
- name: Show tag
|
- name: Show tag
|
||||||
run: echo "$GIT_TAG_NAME";
|
run: echo "$GIT_TAG_NAME";
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver-opts: network=host
|
||||||
|
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ secrets.REGISTRY_URL }}
|
||||||
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_PWD }}
|
||||||
|
|
||||||
|
- name: Build frontend and push it to registry
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: frontend
|
||||||
|
push: true
|
||||||
|
tags: ${{ secrets.REGISTRY_URL }}/${{ env.DOCKER_ORG }}/frontend-analytics-demo:$GIT_TAG_NAME
|
||||||
|
platforms: linux/amd64
|
||||||
|
file: frontend/Dockerfile
|
||||||
|
|
||||||
|
- name: Build backend and push it to registry
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: backend
|
||||||
|
push: true
|
||||||
|
tags: ${{ secrets.REGISTRY_URL }}/${{ env.DOCKER_ORG }}/backend-analytics-demo:$GIT_TAG_NAME
|
||||||
|
platforms: linux/amd64
|
||||||
|
file: backend/Dockerfile
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user