From 1f17578748c521be228742e83f2cdf7c50d307f1 Mon Sep 17 00:00:00 2001 From: kkmanos Date: Thu, 16 May 2024 14:19:38 +0300 Subject: [PATCH 1/2] added workflow for new release --- .github/workflows/docker-image.yml | 4 +++- .github/workflows/docker-push.yml | 15 +++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 09696e3..0f8af95 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -15,6 +15,8 @@ jobs: packages: read # To read NPM registry uses: wwwallet/wallet-ecosystem/.github/workflows/docker-build-push.yml@master + secrets: inherit with: - image-tag: ghcr.io/wwwallet/wallet-backend:latest + image-tag: ghcr.io/wwwallet/wallet-backend-server:latest docker-push: false + dockerfile-path: ./Dockerfile diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index ad4a32b..df8da72 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -1,9 +1,10 @@ -name: Build and push Docker image - +name: Push Docker image on: push: - branches: - - master + tags: + - v0.* + - v1.* + - v2.* jobs: build: @@ -11,9 +12,11 @@ jobs: # Permissions for GITHUB_TOKEN permissions: contents: read # To check out repo - packages: write # To read NPM registry and push Docker image + packages: write # To read NPM registry uses: wwwallet/wallet-ecosystem/.github/workflows/docker-build-push.yml@master + secrets: inherit with: - image-tag: ghcr.io/wwwallet/wallet-backend:latest + image-tag: ghcr.io/wwwallet/wallet-backend-server:${{ github.ref_name }} docker-push: true + dockerfile-path: ./Dockerfile From a6501da79c0a8bd9280885e101808dd333228485 Mon Sep 17 00:00:00 2001 From: kkmanos Date: Mon, 3 Jun 2024 16:10:07 +0300 Subject: [PATCH 2/2] workflows --- .github/workflows/docker-image.yml | 5 +++-- .github/workflows/docker-push.yml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 0f8af95..18d2a24 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -4,6 +4,7 @@ on: push: branches-ignore: - master # Covered by docker-push.yml + - dc4eu-rome pull_request: jobs: @@ -14,9 +15,9 @@ jobs: contents: read # To check out repo packages: read # To read NPM registry - uses: wwwallet/wallet-ecosystem/.github/workflows/docker-build-push.yml@master + uses: gunet/wallet-ecosystem/.github/workflows/docker-build-push.yml@dc4eu-rome secrets: inherit with: - image-tag: ghcr.io/wwwallet/wallet-backend-server:latest + image-tag: ghcr.io/gunet/wallet-backend-server:latest docker-push: false dockerfile-path: ./Dockerfile diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index df8da72..e53a459 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -14,9 +14,9 @@ jobs: contents: read # To check out repo packages: write # To read NPM registry - uses: wwwallet/wallet-ecosystem/.github/workflows/docker-build-push.yml@master + uses: gunet/wallet-ecosystem/.github/workflows/docker-build-push.yml@dc4eu-rome secrets: inherit with: - image-tag: ghcr.io/wwwallet/wallet-backend-server:${{ github.ref_name }} + image-tag: ghcr.io/gunet/wallet-backend-server:${{ github.ref_name }} docker-push: true dockerfile-path: ./Dockerfile