Skip to content

Commit

Permalink
Try test before push
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentao-Kuang committed Sep 30, 2024
1 parent 375d7d9 commit 91b54bd
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ jobs:
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: '@basemaps/cli - Build and push'
uses: docker/build-push-action@v5
with:
context: packages/cli
platforms: linux/arm64,linux/amd64
load: true
tags: |
ghcr.io/linz/basemaps/cli:latest
ghcr.io/linz/basemaps/cli:${{ steps.version.outputs.version }}
- name: Test
run: |
docker run --rm ghcr.io/linz/basemaps/cli:${{ steps.version.outputs.version }}
- name: '@basemaps/cli - Build and push'
uses: docker/build-push-action@v5
with:
Expand All @@ -64,7 +78,6 @@ jobs:
tags: |
ghcr.io/linz/basemaps/cli:latest
ghcr.io/linz/basemaps/cli:${{ steps.version.outputs.version }}
load: true
push: ${{github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:') == false}}

- name: '@basemaps/cli - Build and push Major/Minor'
Expand All @@ -78,7 +91,6 @@ 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 }}
load: true
push: ${{github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:')}}

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

- name: '@basemaps/server - Build and push Major/Minor'
Expand All @@ -103,11 +114,5 @@ 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 }}
load: true
push: ${{github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:')}}

- name: 'Validate Containers build'
run: |
docker run --rm ghcr.io/linz/basemaps/server:${{ steps.version.outputs.version }}
docker run --rm ghcr.io/linz/basemaps/cli:${{ steps.version.outputs.version }}

0 comments on commit 91b54bd

Please sign in to comment.