Skip to content

Commit

Permalink
Merge pull request #341 from pinheadmz/deploy-dev
Browse files Browse the repository at this point in the history
ci: deploy dev RPC image
  • Loading branch information
pinheadmz committed Apr 15, 2024
2 parents 38a652d + 63d3a15 commit ab05d58
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
- name: Build and push production RPC image
uses: docker/build-push-action@v5
with:
file: src/templates/rpc/Dockerfile_rpc
Expand All @@ -53,6 +53,18 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_RPC_REPO }}:latest
cache-to: type=inline
- name: Build and push dev RPC image
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v5
with:
file: src/templates/rpc/Dockerfile_rpc_dev
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: type=raw,value=dev
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_RPC_REPO }}:dev
cache-to: type=inline
- name: Create tag name file
run: echo "${{ steps.meta.outputs.tags }}" > tagname.txt
- name: Upload tag name as artifact
Expand Down
2 changes: 1 addition & 1 deletion src/templates/rpc/warnet-rpc-statefulset-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
containers:
- name: warnet-rpc
imagePullPolicy: Always
image: bitcoindevproject/warnet-rpc:dev-3
image: bitcoindevproject/warnet-rpc:dev
ports:
- containerPort: 9276
volumeMounts:
Expand Down

0 comments on commit ab05d58

Please sign in to comment.