33 lines
993 B
YAML
33 lines
993 B
YAML
#
|
|
#
|
|
# Publish docker workflow for all modules of captica.expert
|
|
#
|
|
# Project: workflows
|
|
# Author: Marc Böhm <marc.boehm@captica.de>
|
|
# License: MIT License (see LICENSE.md)
|
|
#
|
|
# Copyright (c) captica GmbH est. 2021
|
|
#
|
|
name: Publish docker workflow for captica.expert modules
|
|
on:
|
|
workflow_call:
|
|
jobs:
|
|
publish_docker:
|
|
name: Build and publish docker image
|
|
runs-on: docker-ubuntu
|
|
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: Setup docker buildx environment
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Login to docker registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ vars.CONTAINER_REGISTRY_URL }}
|
|
username: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
|
|
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }} |