Skip to content

Commit

Permalink
Add smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentao-Kuang committed Sep 30, 2024
1 parent 3325c77 commit 6b9af7d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
# Files are packed into the base directory
cp *.tgz packages/server/
cp *.tgz packages/cli/
cp -r packages/lambda-tiler/static/ packages/server/
cp -r packages/lambda-tiler/static/ packages/cli/
- name: Log in to registry
Expand All @@ -63,6 +64,7 @@ jobs:
tags: |
ghcr.io/linz/basemaps/cli:latest
ghcr.io/linz/basemaps/cli:${{ steps.version.outputs.version }}
outputs: type=oci,dest=/tmp/cli.tar
push: ${{github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:') == false}}

- name: '@basemaps/cli - Build and push Major/Minor'
Expand All @@ -76,7 +78,7 @@ jobs:
ghcr.io/linz/basemaps/cli:${{ steps.version.outputs.version_major }}
ghcr.io/linz/basemaps/cli:${{ steps.version.outputs.version_major_minor }}
ghcr.io/linz/basemaps/cli:${{ steps.version.outputs.version }}
outputs: type=oci,dest=/tmp/cli.tar
push: ${{github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:')}}

- name: '@basemaps/server - Build and push'
Expand All @@ -87,6 +89,7 @@ jobs:
tags: |
ghcr.io/linz/basemaps/server:latest
ghcr.io/linz/basemaps/server:${{ steps.version.outputs.version }}
outputs: type=oci,dest=/tmp/server.tar
push: ${{github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:') == false}}

- name: '@basemaps/server - Build and push Major/Minor'
Expand All @@ -100,4 +103,13 @@ jobs:
ghcr.io/linz/basemaps/server:${{ steps.version.outputs.version_major }}
ghcr.io/linz/basemaps/server:${{ steps.version.outputs.version_major_minor }}
ghcr.io/linz/basemaps/server:${{ steps.version.outputs.version }}
outputs: type=oci,dest=/tmp/server.tar
push: ${{github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:')}}

- name: 'Validate Containers build'
run: |
docker load --input /tmp/cli.tar
docker run ghcr.io/linz/basemaps/cli:latest --help
docker load --input /tmp/server.tar
docker run ghcr.io/linz/basemaps/server:latest --help

0 comments on commit 6b9af7d

Please sign in to comment.