With registry URL & credentials
This commit is contained in:
@@ -3,6 +3,10 @@ name: Workflow de prueba
|
|||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
env:
|
||||||
|
DOCKER_ORG: beyondcx
|
||||||
|
BRANCH_NAME: ${{ github.ref_name }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build and push images:
|
Build and push images:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -10,6 +14,9 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Extract Branch Name
|
||||||
|
run: echo "BRANCH_NAME=${gitea.ref#refs/heads/}" >> env.BRANCH_NAME
|
||||||
|
|
||||||
- name: Setup QEMU
|
- name: Setup QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
@@ -17,12 +24,23 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
driver-opts: network=host
|
driver-opts: network=host
|
||||||
|
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
url: git.beyondcx.org
|
||||||
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.REGITRY_PWD }}
|
||||||
|
|
||||||
|
- name: Echo the Tag
|
||||||
|
run: echo "Tag: ${{ env.DOCKER_ORG }}/beyondcx:${BRANCH_NAME} }}"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: false
|
||||||
tags: beyondcx/beyondcx:latest
|
tags: ${{ env.DOCKER_ORG }}/beyondcx:${{ env.BRANCH_NAME }}
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user