winglian commited on
Commit
7af8166
1 Parent(s): f806e86

tag with latest as well for axolotl-runpod (#418)

Browse files

* tag with latest as well for axolotl-runpod

* no dev branch for now

Files changed (1) hide show
  1. .github/workflows/main.yml +4 -2
.github/workflows/main.yml CHANGED
@@ -4,7 +4,6 @@ on:
4
  push:
5
  branches:
6
  - "main"
7
- - "dev"
8
 
9
  jobs:
10
  build-axolotl:
@@ -72,6 +71,7 @@ jobs:
72
  python_version: "3.10"
73
  pytorch: 2.0.1
74
  axolotl_extras:
 
75
  - cuda: 118
76
  cuda_version: 11.8.0
77
  python_version: "3.9"
@@ -102,5 +102,7 @@ jobs:
102
  CUDA=${{ matrix.cuda }}
103
  file: ./docker/Dockerfile-runpod
104
  push: ${{ github.event_name != 'pull_request' }}
105
- tags: ${{ steps.metadata.outputs.tags }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }}
 
 
106
  labels: ${{ steps.metadata.outputs.labels }}
 
4
  push:
5
  branches:
6
  - "main"
 
7
 
8
  jobs:
9
  build-axolotl:
 
71
  python_version: "3.10"
72
  pytorch: 2.0.1
73
  axolotl_extras:
74
+ is_latest: true
75
  - cuda: 118
76
  cuda_version: 11.8.0
77
  python_version: "3.9"
 
102
  CUDA=${{ matrix.cuda }}
103
  file: ./docker/Dockerfile-runpod
104
  push: ${{ github.event_name != 'pull_request' }}
105
+ tags: |
106
+ ${{ steps.metadata.outputs.tags }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }}
107
+ ${{ (matrix.is_latest) && format('{0}:latest', steps.metadata.outputs.image) || '' }}
108
  labels: ${{ steps.metadata.outputs.labels }}