Skip to content

Commit

Permalink
ci(container images): tweak build tag to have suffix
Browse files Browse the repository at this point in the history
So we can distinguish builds from main

Signed-off-by: mudler <mudler@localai.io>
  • Loading branch information
mudler committed Jan 14, 2025
1 parent 2e61c18 commit dfb85d0
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,19 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@2a4836ac76fe8f5d0ee3a0d89aa12a80cc552ad3
with:
images: masaengineering/oracle
tags: |
type=ref,event=branch,suffix=-{{date 'YYYYMMDDHHmmss'}}
type=semver,pattern={{raw}}
type=sha,suffix=-{{date 'YYYYMMDDHHmmss'}}
flavor: |
latest=auto
prefix=
suffix=
- name: Build and push
uses: docker/build-push-action@v6
with:
Expand All @@ -67,4 +79,6 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.prep.outputs.tags }}
#tags: ${{ steps.prep.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit dfb85d0

Please sign in to comment.