Skip to content

Commit

Permalink
Fix docker login
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste Louazel <[email protected]>
  • Loading branch information
jlouazel committed Dec 4, 2024
1 parent 2d69f56 commit 2a4c6d9
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/build_push_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- flexai/deploy
- fix-docker-login
paths:
- "pkg/**"
- "docker/**"
Expand All @@ -31,20 +32,23 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
run: |
docker login ${{ env.SCW_INFRA_REGISTRY_URL }} -p ${{ secrets.SCW_REGISTRY_INFRA_RW_SECRET }}
- name: Build and Push Docker Images
uses: docker/build-push-action@v6
uses: docker/login-action@v3
with:
context: docker/
file: docker/Dockerfile.ubuntu22.04
platforms: linux/amd64
build-args: |
GOLANG_VERSION=${{ env.GOLANG_VERSION }}
DCGM_VERSION=${{ env.DCGM_VERSION }}
VERSION=${{ env.DCGM_EXPORTER_VERSION }}
push: true
tags: |
${{ env.SCW_INFRA_REGISTRY_URL }}/dcgm-exporter:${{ github.sha }}
${{ env.SCW_INFRA_REGISTRY_URL }}/dcgm-exporter:latest
username: NOLOGIN
password: ${{ secrets.SCW_REGISTRY_INFRA_RW_SECRET }}
registry: ${{ env.SCW_INFRA_REGISTRY_URL }}

# - name: Build and Push Docker Images
# uses: docker/build-push-action@v6
# with:
# context: docker/
# file: docker/Dockerfile.ubuntu22.04
# platforms: linux/amd64
# build-args: |
# GOLANG_VERSION=${{ env.GOLANG_VERSION }}
# DCGM_VERSION=${{ env.DCGM_VERSION }}
# VERSION=${{ env.DCGM_EXPORTER_VERSION }}
# push: true
# tags: |
# ${{ env.SCW_INFRA_REGISTRY_URL }}/dcgm-exporter:${{ github.sha }}
# ${{ env.SCW_INFRA_REGISTRY_URL }}/dcgm-exporter:latest

0 comments on commit 2a4c6d9

Please sign in to comment.