Skip to content

Commit 3d0b57f

Browse files
authored
Merge pull request #52 from wwWallet/new-workflows
added workflow for new release
2 parents 8391531 + 1f17578 commit 3d0b57f

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/docker-image.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
packages: read # To read NPM registry
1616

1717
uses: wwwallet/wallet-ecosystem/.github/workflows/docker-build-push.yml@master
18+
secrets: inherit
1819
with:
19-
image-tag: ghcr.io/wwwallet/wallet-backend:latest
20+
image-tag: ghcr.io/wwwallet/wallet-backend-server:latest
2021
docker-push: false
22+
dockerfile-path: ./Dockerfile

.github/workflows/docker-push.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
name: Build and push Docker image
2-
1+
name: Push Docker image
32
on:
43
push:
5-
branches:
6-
- master
4+
tags:
5+
- v0.*
6+
- v1.*
7+
- v2.*
78

89
jobs:
910
build:
1011

1112
# Permissions for GITHUB_TOKEN
1213
permissions:
1314
contents: read # To check out repo
14-
packages: write # To read NPM registry and push Docker image
15+
packages: write # To read NPM registry
1516

1617
uses: wwwallet/wallet-ecosystem/.github/workflows/docker-build-push.yml@master
18+
secrets: inherit
1719
with:
18-
image-tag: ghcr.io/wwwallet/wallet-backend:latest
20+
image-tag: ghcr.io/wwwallet/wallet-backend-server:${{ github.ref_name }}
1921
docker-push: true
22+
dockerfile-path: ./Dockerfile

0 commit comments

Comments
 (0)