Skip to content

Commit

Permalink
use oci output
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentao-Kuang committed Sep 30, 2024
1 parent dab3b89 commit dd68080
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ jobs:
context: packages/cli
platforms: linux/arm64,linux/amd64
tags: |
cli
ghcr.io/linz/basemaps/cli:latest
ghcr.io/linz/basemaps/cli:${{ steps.version.outputs.version }}
outputs: type=docker,dest=/tmp/cli.tar
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 @@ -75,12 +74,11 @@ jobs:
platforms: linux/arm64,linux/amd64
# Publish :v6 and :v6.38 tags when publishing a release
tags: |
cli
ghcr.io/linz/basemaps/cli:latest
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=docker,dest=/tmp/cli.tar
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 @@ -89,10 +87,9 @@ jobs:
context: packages/server
platforms: linux/arm64,linux/amd64
tags: |
server
ghcr.io/linz/basemaps/server:latest
ghcr.io/linz/basemaps/server:${{ steps.version.outputs.version }}
outputs: type=docker,dest=/tmp/server.tar
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 @@ -102,12 +99,11 @@ jobs:
platforms: linux/arm64,linux/amd64
# Publish :v6 and :v6.38 tags when publishing a release
tags: |
server
ghcr.io/linz/basemaps/server:latest
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=docker,dest=/tmp/server.tar
outputs: type=oci,dest=/tmp/server.tar
push: ${{github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:')}}

- name: 'Validate Containers build'
Expand Down

0 comments on commit dd68080

Please sign in to comment.