Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push image to f25e common container registry #522

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/docker-builder-publisher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,27 @@ jobs:
run: |
poetry export -f requirements.txt --output requirements.txt --extras "all"

- id: version
name: Build Version
run: echo "version=$(date -u '+%Y%m%dT%H%M%SZ')" >> $GITHUB_ENV
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why introduce another type of versioning that the image pushed to docker hub?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f25e we use timestamp for the image versions


- name: Azure login
uses: azure/login@v1
with:
client-id: 9c8d1e31-54b5-4156-b1d0-408135e2b55b
tenant-id: a9ae5b54-3600-4917-a9dc-3020723360b3
subscription-id: fd108646-dc13-4d9a-9b8c-d9dbde664887

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push
uses: docker/build-push-action@v4
env:
VERSION: ${{ env.version }}
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
tags: cognite/neat:latest, cognite/neat:${{ github.ref_name }}
tags: cognite/neat:latest, cognite/neat:${{ github.ref_name }}, scsproduction.azurecr.io/neat:${{ env.version }}
Loading