CAPAUT-353 Adjust wf

This commit is contained in:
2024-03-25 15:52:59 +01:00
parent 33ef5ff24d
commit 14936dd362

View File

@@ -18,11 +18,11 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v4
# - name: Download build artifacts (dist files)
# uses: actions/download-artifact@v3
# with:
# name: artifacts-build
# path: build/
- name: Download build artifacts (dist files)
uses: actions/download-artifact@v3
with:
name: artifacts-build
path: build/
- name: Setup docker buildx environment
uses: docker/setup-buildx-action@v3
- name: Login to docker registry
@@ -31,3 +31,18 @@ jobs:
registry: ${{ vars.CONTAINER_REGISTRY_URL }}
username: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
- name: Setup environment variables from "build/env-setup.sh"
run: |
source build/env-setup.sh
- name: Build and push docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: "${{ vars.CONTAINER_REGISTRY_URL }}/${{gitea.repository}}:latest"
build-args: |
FILE_BINARY=${{ env.CAPTICA_APPLICATION_FILE_BINARY }}
NAME_APPLICATION=${{ env.CAPTICA_APPLICATION_NAME }}
PORT_EXPOSURE=${{ env.CAPTICA_APPLICATION_PORT }}
JAVA_VERSION=${{ env.CAPTICA_APPLICATION_JAVA_VERSION }}