From a0521ba16f97ed90c4c37736c51cf3b950a26a71 Mon Sep 17 00:00:00 2001 From: v-chen_data Date: Tue, 24 Sep 2024 14:38:18 -0700 Subject: [PATCH] docker creds --- .github/workflows/release.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 23d28dd67a..98b7ff3784 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -57,14 +57,23 @@ jobs: needs: - code-quality runs-on: mosaic-8wide + if: github.repository_owner == 'mosaicml' steps: - name: Checkout source uses: actions/checkout@v3 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} + - name: Define Docker tags id: define-tags run: | - # Replace / with _ in github.ref_name BRANCH_NAME="${{ github.ref_name }}" TAG_NAME=$(echo "${BRANCH_NAME}" | sed 's/\//_/g') echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV