diff --git a/.github/workflows/nightlies.yml b/.github/workflows/nightlies.yml index 0adbe68531..233e68ec35 100644 --- a/.github/workflows/nightlies.yml +++ b/.github/workflows/nightlies.yml @@ -38,6 +38,8 @@ jobs: uses: docker/metadata-action@v5 with: images: winglian/axolotl + tags: | + type=raw,value=mytag-{{branch}}-{{date 'YYYYMMDD'}} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub @@ -58,7 +60,7 @@ jobs: file: ./docker/Dockerfile push: ${{ github.event_name != 'pull_request' }} tags: | - ${{ steps.metadata.outputs.tags }}-${{ format('{0:yyyyMMdd}', github.event.repository.pushed_at) }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }} + ${{ steps.metadata.outputs.tags }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }} labels: ${{ steps.metadata.outputs.labels }} build-axolotl-cloud: @@ -93,6 +95,8 @@ jobs: uses: docker/metadata-action@v5 with: images: winglian/axolotl-cloud + tags: | + type=raw,value=mytag-{{branch}}-{{date 'YYYYMMDD'}} - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -110,5 +114,5 @@ jobs: file: ./docker/Dockerfile-cloud push: ${{ github.event_name != 'pull_request' }} tags: | - ${{ steps.metadata.outputs.tags }}-${{ format('{0:yyyyMMdd}', github.event.repository.pushed_at) }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }} + ${{ steps.metadata.outputs.tags }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }} labels: ${{ steps.metadata.outputs.labels }}