53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Tag Release
|
|
|
|
on:
|
|
release:
|
|
types: [created,edited,published]
|
|
|
|
env:
|
|
DOCKER_ORG: beyondcx
|
|
|
|
jobs:
|
|
new images:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Extract Tag Name
|
|
uses: olegtarasov/get-tag@v2.1.4
|
|
id: tagName
|
|
- name: Show tag
|
|
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:${{ steps.tagName.outputs.tag }}
|
|
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:${{ steps.tagName.outputs.tag }}
|
|
platforms: linux/amd64
|
|
file: backend/Dockerfile
|
|
|