Skip to content

Commit

Permalink
docker minor major tags
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyaug committed Oct 30, 2023
1 parent 1114efe commit 8ac1e0f
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,24 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: lakectl docker metadata
id: lakectl_meta
uses: docker/metadata-action@v5
with:
images: treeverse/lakectl,${{ steps.login-ecr.outputs.registry }}/lakectl
tags: |
type=semver,pattern={{version}},value=${{ steps.version.outputs.tag }}
type=semver,pattern={{major}}.{{minor}},value=${{ steps.version.outputs.tag }}
type=semver,pattern={{major}},value=${{ steps.version.outputs.tag }}
- name: lakefs docker metadata
id: lakefs_meta
uses: docker/metadata-action@v5
with:
images: treeverse/lakefs,${{ steps.login-ecr.outputs.registry }}/lakefs
tags: |
type=semver,pattern={{version}},value=${{ steps.version.outputs.tag }}
type=semver,pattern={{major}}.{{minor}},value=${{ steps.version.outputs.tag }}
type=semver,pattern={{major}},value=${{ steps.version.outputs.tag }}
- name: Build and push lakectl
uses: docker/build-push-action@v3
with:
Expand All @@ -85,10 +102,7 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64,darwin/amd64,darwin/arm64
build-args: VERSION=${{ steps.version.outputs.tag }}
tags: |
${{ steps.login-ecr.outputs.registry }}/lakectl:${{ steps.version.outputs.tag }}
treeverse/lakectl:${{ steps.version.outputs.tag }}
treeverse/lakectl:latest
tags: ${{ steps.lakectl_meta.outputs.tags }}

- name: Build and push lakefs
uses: docker/build-push-action@v3
Expand All @@ -98,7 +112,4 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64,darwin/amd64,darwin/arm64
build-args: VERSION=${{ steps.version.outputs.tag }}
tags: |
${{ steps.login-ecr.outputs.registry }}/lakefs:${{ steps.version.outputs.tag }}
treeverse/lakefs:${{ steps.version.outputs.tag }}
treeverse/lakefs:latest
tags: ${{ steps.lakefs_meta.outputs.tags }}

0 comments on commit 8ac1e0f

Please sign in to comment.