From 319c86919c446cc53a177e6e22ee16931701080b Mon Sep 17 00:00:00 2001 From: Jose Costa Teixeira Date: Tue, 24 Sep 2024 01:34:38 +0200 Subject: [PATCH] Update linux-docker-build.yml --- .github/workflows/linux-docker-build.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/linux-docker-build.yml b/.github/workflows/linux-docker-build.yml index 326584fd3..bb3f41b2b 100644 --- a/.github/workflows/linux-docker-build.yml +++ b/.github/workflows/linux-docker-build.yml @@ -11,13 +11,11 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v2 - - - name: Login to Docker Hub + - name: Login to Docker Hub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Cache terminology files uses: actions/cache@v2 with: @@ -75,13 +73,13 @@ jobs: -v ~/test-settings.ini:/work/fhirserver/exec/64/test-settings.ini \ fhirserver -tests - - name: Tag and push Docker image - run: | + - name: Tag and push Docker image + run: | # Extract the FHIR server version from the library/version.inc file - FHIR_VERSION=$(grep -oP "FHIR_CODE_FULL_VERSION = '\K[^']+" library/version.inc) + FHIR_VERSION=$(grep -oP "FHIR_CODE_FULL_VERSION = '\K[^']+" library/version.inc) # Tag the Docker image with the extracted version and "latest" - docker tag fhirserver ${{ secrets.DOCKERHUB_USERNAME }}/fhirserver:nightly + docker tag fhirserver ${{ secrets.DOCKERHUB_USERNAME }}/fhirserver:nightly # Push both tagged images to Docker Hub - docker push ${{ secrets.DOCKERHUB_USERNAME }}/fhirserver:nightly + docker push ${{ secrets.DOCKERHUB_USERNAME }}/fhirserver:nightly