@@ -2,7 +2,7 @@ name: Runtimes
22
33on :
44 push :
5- branches : [main]
5+ branches : [main, feat/apps-sdk ]
66 paths :
77 - " runpod/runtimes/**"
88 - " .github/workflows/runtimes.yml"
1414
1515env :
1616 REGISTRY : docker.io
17+ # dev-suffixed tags for non-main branches so testing never clobbers latest
18+ TAG_SUFFIX : ${{ github.ref == 'refs/heads/main' && 'latest' || 'dev' }}
1719
1820jobs :
1921 test-runner :
6264 PYTHON_VERSION=${{ matrix.python-version }}
6365 push : ${{ github.event_name != 'pull_request' }}
6466 tags : |
65- runpod/task:py${{ matrix.python-version }}-latest
67+ runpod/task:py${{ matrix.python-version }}-${{ env.TAG_SUFFIX }}
6668 cache-from : type=gha,scope=task-py${{ matrix.python-version }}
6769 cache-to : type=gha,mode=max,scope=task-py${{ matrix.python-version }}
6870
9597 platforms : linux/amd64
9698 push : ${{ github.event_name != 'pull_request' }}
9799 tags : |
98- runpod/task-gpu:latest
100+ runpod/task-gpu:${{ env.TAG_SUFFIX }}
99101 cache-from : type=gha,scope=task-gpu
100102 cache-to : type=gha,mode=max,scope=task-gpu
103+
104+ build-queue :
105+ runs-on : ubuntu-latest
106+ needs : [test-runner]
107+ strategy :
108+ matrix :
109+ python-version : ["3.10", "3.11", "3.12"]
110+ steps :
111+ - uses : actions/checkout@v7
112+
113+ - uses : docker/setup-buildx-action@v3
114+
115+ - name : Login to Docker Hub
116+ if : github.event_name != 'pull_request'
117+ uses : docker/login-action@v3
118+ with :
119+ registry : ${{ env.REGISTRY }}
120+ username : ${{ secrets.DOCKERHUB_USERNAME }}
121+ password : ${{ secrets.DOCKERHUB_TOKEN }}
122+
123+ - name : Build and push queue image
124+ uses : docker/build-push-action@v6
125+ with :
126+ context : .
127+ file : runpod/runtimes/queue/Dockerfile
128+ platforms : linux/amd64
129+ build-args : |
130+ PYTHON_VERSION=${{ matrix.python-version }}
131+ push : ${{ github.event_name != 'pull_request' }}
132+ tags : |
133+ runpod/queue:py${{ matrix.python-version }}-${{ env.TAG_SUFFIX }}
134+ cache-from : type=gha,scope=queue-py${{ matrix.python-version }}
135+ cache-to : type=gha,mode=max,scope=queue-py${{ matrix.python-version }}
0 commit comments