Files
Guillermo 7a931d32ba
Some checks failed
Tag Release / new images (release) Failing after 12s
Update actions
2026-02-17 10:39:24 +00:00

53 lines
1.4 KiB
YAML

name: Workflow de prueba
on:
pull_request_review:
types: [submitted]
env:
DOCKER_ORG: beyondcx
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
Build and push images:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
- name: Echo the Tag
run: echo "Tag ${{ env.DOCKER_ORG }}/beyondcx:${{ env.BRANCH_NAME }}"
- 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: false
tags: ${{ secrets.REGISTRY_URL }}/${{ env.DOCKER_ORG }}/frontend-analytics-demo:${{ env.BRANCH_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: false
tags: ${{ secrets.REGISTRY_URL }}/${{ env.DOCKER_ORG }}/backend-analytics-demo:${{ env.BRANCH_NAME }}
platforms: linux/amd64
file: backend/Dockerfile