Skip to content

Commit f001dab

Browse files
committed
Merge pull request #341 from pinheadmz/deploy-dev
ci: deploy dev RPC image
2 parents 38a652d + 63d3a15 commit f001dab

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/test.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
username: ${{ secrets.DOCKERHUB_USERNAME }}
4444
password: ${{ secrets.DOCKERHUB_TOKEN }}
45-
- name: Build and push
45+
- name: Build and push production RPC image
4646
uses: docker/build-push-action@v5
4747
with:
4848
file: src/templates/rpc/Dockerfile_rpc
@@ -53,6 +53,18 @@ jobs:
5353
labels: ${{ steps.meta.outputs.labels }}
5454
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_RPC_REPO }}:latest
5555
cache-to: type=inline
56+
- name: Build and push dev RPC image
57+
if: github.ref == 'refs/heads/main'
58+
uses: docker/build-push-action@v5
59+
with:
60+
file: src/templates/rpc/Dockerfile_rpc_dev
61+
platforms: linux/amd64,linux/arm64
62+
context: .
63+
push: true
64+
tags: dev
65+
labels: ${{ steps.meta.outputs.labels }}
66+
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_RPC_REPO }}:dev
67+
cache-to: type=inline
5668
- name: Create tag name file
5769
run: echo "${{ steps.meta.outputs.tags }}" > tagname.txt
5870
- name: Upload tag name as artifact

src/templates/rpc/warnet-rpc-statefulset-dev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
containers:
1818
- name: warnet-rpc
1919
imagePullPolicy: Always
20-
image: bitcoindevproject/warnet-rpc:dev-3
20+
image: bitcoindevproject/warnet-rpc:dev
2121
ports:
2222
- containerPort: 9276
2323
volumeMounts:

0 commit comments

Comments
 (0)