Skip to content

Commit

Permalink
docker creds
Browse files Browse the repository at this point in the history
  • Loading branch information
v-chen_data committed Sep 24, 2024
1 parent 395ce3c commit a0521ba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0521ba

Please sign in to comment.