Skip to content

Commit deecba5

Browse files
authored
feat(ci): add automated release workflow with patch version bumping (#284)
1 parent 7dfca7f commit deecba5

File tree

11 files changed

+568
-17
lines changed

11 files changed

+568
-17
lines changed
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish
1+
name: Release Dev
22

33
on:
44
push:
@@ -24,24 +24,24 @@ jobs:
2424
with:
2525
component: cluster
2626

27-
tag-ghcr-latest:
28-
name: Tag GHCR Images as Latest
27+
tag-ghcr-dev:
28+
name: Tag GHCR Images as Dev
2929
needs: [build-gateway, build-cluster]
3030
runs-on: build-amd64
3131
timeout-minutes: 10
3232
steps:
3333
- name: Log in to GHCR
3434
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
3535

36-
- name: Tag images as latest
36+
- name: Tag images as dev
3737
run: |
3838
set -euo pipefail
3939
REGISTRY="ghcr.io/nvidia/openshell"
4040
for component in gateway cluster; do
41-
echo "Tagging ${REGISTRY}/${component}:${{ github.sha }} as latest..."
41+
echo "Tagging ${REGISTRY}/${component}:${{ github.sha }} as dev..."
4242
docker buildx imagetools create \
4343
--prefer-index=false \
44-
-t "${REGISTRY}/${component}:latest" \
44+
-t "${REGISTRY}/${component}:dev" \
4545
"${REGISTRY}/${component}:${{ github.sha }}"
4646
done
4747
@@ -64,6 +64,7 @@ jobs:
6464
env:
6565
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6666
SCCACHE_MEMCACHED_ENDPOINT: ${{ vars.SCCACHE_MEMCACHED_ENDPOINT }}
67+
OPENSHELL_IMAGE_TAG: dev
6768
NAV_PYPI_S3_BUCKET: navigator-pypi-artifacts # TODO: rename bucket to openshell-pypi-artifacts
6869
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
6970
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -209,6 +210,7 @@ jobs:
209210
env:
210211
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
211212
SCCACHE_MEMCACHED_ENDPOINT: ${{ vars.SCCACHE_MEMCACHED_ENDPOINT }}
213+
OPENSHELL_IMAGE_TAG: dev
212214
steps:
213215
- uses: actions/checkout@v4
214216
with:
@@ -331,6 +333,7 @@ jobs:
331333
docker buildx build \
332334
--file deploy/docker/Dockerfile.cli-macos \
333335
--build-arg OPENSHELL_CARGO_VERSION="${{ steps.version.outputs.cargo_version }}" \
336+
--build-arg OPENSHELL_IMAGE_TAG=dev \
334337
--build-arg CARGO_TARGET_CACHE_SCOPE="${{ github.sha }}" \
335338
--target binary \
336339
--output type=local,dest=out/ \

0 commit comments

Comments
 (0)