Skip to content

Commit

Permalink
DAS-1601 - Update platform for service Docker image to AMD64.
Browse files Browse the repository at this point in the history
  • Loading branch information
owenlittlejohns authored Oct 7, 2024
1 parent 5fc6aa1 commit 3a0b198
Show file tree
Hide file tree
Showing 10 changed files with 307 additions and 103 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,30 @@ jobs:

steps:
- name: Checkout harmony-gdal-adapter repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: true

- name: Extract semantic version number
run: echo "semantic_version=$(cat version.txt)" >> $GITHUB_ENV

- name: Log-in to ghcr.io registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Add tags to the Docker image
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}},value=${{ env.semantic_version }}
- name: Push Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: docker/service.Dockerfile
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,32 @@ jobs:

steps:
- name: Checkout harmony-gdal-adapter repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Build service image
run: ./bin/build-image

- name: Build test image
run: ./bin/build-test

- name: Run test image
run: ./bin/run-test

- name: Archive test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Test results for Python ${{ matrix.python-version }}
path: test-reports/

- name: Archive coverage report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Coverage report for Python ${{ matrix.python-version }}
path: coverage/*
Loading

0 comments on commit 3a0b198

Please sign in to comment.