Skip to content

Commit

Permalink
Update linux-docker-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
costateixeira authored Sep 23, 2024
1 parent 17e2d6e commit 319c869
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/linux-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 319c869

Please sign in to comment.