Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support lowercase repo owners for ghcr #239

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/linux-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,19 @@ jobs:
-e MYSQL_DATABASE=test \
-d mysql:8

# Step 5: Build the Docker image and tag it for GitHub Container Registry (GHCR)
# Step 5: Convert repository owner and name to lowercase
- name: Convert repository owner and name to lowercase
id: vars
run: |
echo "org_name=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
echo "repo_name=$(basename ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

# Step 6: Build the Docker image and tag it for GitHub Container Registry (GHCR)
- name: Docker Build
run: |
docker build --tag ghcr.io/${{ github.repository_owner }}/fhirserver:nightly .
docker build --tag ghcr.io/${{ env.org_name }}/fhirserver:nightly .

# Step 6: Prepare ini file for your FHIR Server with environment variables
# Step 7: Prepare ini file for your FHIR Server with environment variables
- name: Prepare ini file
env:
FHIRSERVER_LOCATIONS_CLONE_PATH: /work/fhirserver
Expand All @@ -66,14 +73,14 @@ jobs:
run: |
cat fixtures/test-settings.ini.template | envsubst > ~/test-settings.ini

# Step 7: Ensure SNOMED cache is present
# Step 8: Ensure SNOMED cache is present
- name: Ensure SNOMED cache is present
run: |
mkdir -p ~/terminology/fhir-server
wget -q --no-clobber https://storage.googleapis.com/ig-build/snomed.test.cache -O ~/terminology/fhir-server/snomed.test.cache || true
ls ~/terminology/fhir-server/snomed.test.cache

# Step 8: Push the Docker image to GitHub Container Registry (GHCR)
# Step 9: Push the Docker image to GitHub Container Registry (GHCR)
- name: Push Docker image to GHCR
run: |
docker push ghcr.io/${{ github.repository_owner }}/fhirserver:nightly
docker push ghcr.io/${{ env.org_name }}/fhirserver:nightly
Loading