Skip to content

Update README.md

Update README.md #2

name: Build and Publish Docker Images
on:
push:
branches:
- dev
paths:
- 'README.md'
jobs:
build-and-publish:
runs-on: ubuntu-latest
env:
RELEASE: 1
VERSION: 0
BUILD: 0
FIX: 1
LOWER_CASE_GITHUB_REPOSITORY: ${{ github.repository | replace('/', '_') | lower }}

Check failure on line 19 in .github/workflows/ci-build-full-images.yml

View workflow run for this annotation

GitHub Actions / Build and Publish Docker Images

Invalid workflow file

The workflow is not valid. .github/workflows/ci-build-full-images.yml (Line: 19, Col: 37): Unexpected symbol: '|'. Located at position 19 within expression: github.repository | replace('/', '_') | lower
DOCKERFILE_Datamanagement: ./Docker_Project/dm/Dockerfile
DOCKERFILE_Labelstudio: ./Docker_Project/Label-Studio/Dockerfile
DOCKERFILE_MLstudio: ./Docker_Project/ml-training-service/Dockerfile
DOCKERFILE_Anonymiseworker: ./Docker_Project/anonymisation_internal/anonymisation_api/
DOCKERFILE_Anonymise: ./Docker_Project/anonymisation_internal/anonymisation_api/anonymise
TAG_Datamanagement: $RELEASE-$VERSION.$BUILD.$FIX-Datamanagement
TAG_Labelstudio: $RELEASE-$VERSION.$BUILD.$FIX-Labelstudio
TAG_MLstudio: $RELEASE-$VERSION.$BUILD.$FIX-MLstudio
TAG_Anonymiseworker: $RELEASE-$VERSION.$BUILD.$FIX-Anonymiseworker
TAG_Anonymise: $RELEASE-$VERSION.$BUILD.$FIX-Anonymise
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set environment variables
run: |
echo "RELEASE=$RELEASE" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "BUILD=$BUILD" >> $GITHUB_ENV
echo "FIX=$FIX" >> $GITHUB_ENV
echo "LOWER_CASE_GITHUB_REPOSITORY=$LOWER_CASE_GITHUB_REPOSITORY" >> $GITHUB_ENV
echo "DOCKERFILE_Datamanagement=$DOCKERFILE_Datamanagement" >> $GITHUB_ENV
echo "DOCKERFILE_Labelstudio=$DOCKERFILE_Labelstudio" >> $GITHUB_ENV
echo "DOCKERFILE_MLstudio=$DOCKERFILE_MLstudio" >> $GITHUB_ENV
echo "DOCKERFILE_Anonymiseworker=$DOCKERFILE_Anonymiseworker" >> $GITHUB_ENV
echo "DOCKERFILE_Anonymise=$DOCKERFILE_Anonymise" >> $GITHUB_ENV
echo "TAG_Datamanagement=$TAG_Datamanagement" >> $GITHUB_ENV
echo "TAG_Labelstudio=$TAG_Labelstudio" >> $GITHUB_ENV
echo "TAG_MLstudio=$TAG_MLstudio" >> $GITHUB_ENV
echo "TAG_Anonymiseworker=$TAG_Anonymiseworker" >> $GITHUB_ENV
echo "TAG_Anonymise=$TAG_Anonymise" >> $GITHUB_ENV
- name: Login to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Build and Push DM Docker Image
run: |
cd Docker_Project/dm
docker image build --tag ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$TAG_Datamanagement -f $DOCKERFILE_Datamanagement .
docker push ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$TAG_Datamanagement
- name: Build and Push LM Docker Image
run: |
cd Docker_Project/Label-Studio
docker image build --tag ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$TAG_Labelstudio -f $DOCKERFILE_Labelstudio .
docker push ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$TAG_Labelstudio
- name: Build and Push GUI Docker Image
run: |
cd Docker_Project/ml-training-service
docker image build --tag ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$TAG_MLstudio -f $DOCKERFILE_MLstudio .
docker push ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$TAG_MLstudio
- name: Build and Push GUI Docker Image
run: |
cd Docker_Project/anonymisation_internal/anonymisation_api/
docker image build --tag ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$TAG_Anonymiseworker -f $DOCKERFILE_Anonymiseworker .
docker push ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$TAG_Anonymiseworker
- name: Build and Push GUI Docker Image
run: |
cd Docker_Project/anonymisation_internal/anonymisation_api/anonymise
docker image build --tag ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$TAG_Anonymise -f $DOCKERFILE_Anonymise .
docker push ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$TAG_Anonymise