Skip to content

Commit 976372a

Browse files
committed
chore(xelon): add github action for releasing dev image
1 parent 5906b36 commit 976372a

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/release-dev.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release Dev
2+
3+
on:
4+
pull_request:
5+
branches-ignore:
6+
- master
7+
push:
8+
branches:
9+
- xelon/master
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
release:
17+
name: release
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Login to Docker Hub
26+
uses: docker/login-action@v3
27+
with:
28+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
29+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
30+
31+
- name: Release development Docker image
32+
env:
33+
BUILD_TAGS: xelon
34+
run: |
35+
cd cluster-autoscaler
36+
make release-docker-dev

cluster-autoscaler/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ dev-release: dev-release-arch-$(GOARCH)
6161
dev-release-arch-%: build-arch-% make-image-arch-% push-image-arch-%
6262
@echo "Release ${TAG}${FOR_PROVIDER}-$* completed"
6363

64+
release-docker-dev:
65+
@echo "==> Building docker image xelonag/cluster-autoscaler-xelon:dev..."
66+
@docker build \
67+
--tag xelonag/cluster-autoscaler-xelon:dev \
68+
--file Dockerfile .
69+
@echo "==> Releasing development docker image xelonag/cluster-autoscaler-xelon:dev..."
70+
@docker push xelonag/cluster-autoscaler-xelon:dev
71+
6472
make-image: make-image-arch-$(GOARCH)
6573

6674
make-image-arch-%:

0 commit comments

Comments
 (0)