Skip to content

Commit

Permalink
Merge branch 'hotfix/2.0.1' of github.com:hashgraph/guardian into hot…
Browse files Browse the repository at this point in the history
…fix/2.0.1
  • Loading branch information
Stepan-Kirjakov committed Jul 18, 2022
2 parents 350c898 + 29f5e2b commit df8a4c1
Show file tree
Hide file tree
Showing 18 changed files with 125 additions and 24 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,35 @@ jobs:
- name: Build
run: |
pushd interfaces
npm install
npm install --force
npm run build
popd
pushd logger-helper
npm install
npm install --force
npm run build
popd
pushd logger-service
npm install
npm install --force
npm run build
popd
pushd frontend
npm install
npm install --force
npm run build
popd
pushd auth-service
npm install
npm install --force
npm run build
popd
pushd guardian-service
npm install
npm install --force
npm run build
popd
pushd message-broker
npm install
npm install --force
npm run build
popd
pushd api-gateway
npm install
npm install --force
npm run build
popd
env:
Expand Down
101 changes: 101 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Publish Images
on:
release:
types: [published]

jobs:
docker:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2
- name: get-npm-version

id: package-version
uses: martinbeentjes/npm-get-version-action@main
with:
path: guardian-service

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0'
with:
workload_identity_provider: 'projects/101730247931/locations/global/workloadIdentityPools/hedera-registry-pool/providers/hedera-registry-gh-actions'
service_account: '[email protected]'
token_format: 'access_token'

- uses: 'docker/login-action@v1'
with:
registry: 'gcr.io' # or REGION-docker.pkg.dev
username: 'oauth2accesstoken'
password: '${{ steps.auth.outputs.access_token }}'

- name: logger-service
uses: docker/build-push-action@v2
with:
context: .
file: ./logger-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/logger-service:${{ steps.package-version.outputs.current-version}}'

- name: auth-service
uses: docker/build-push-action@v2
with:
context: .
file: ./auth-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/auth-service:${{ steps.package-version.outputs.current-version}}'

- name: api-gateway
uses: docker/build-push-action@v2
with:
context: .
file: ./api-gateway/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/api-gateway:${{ steps.package-version.outputs.current-version}}'

- name: guardian-service
uses: docker/build-push-action@v2
with:
context: .
file: ./guardian-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/guardian-service:${{ steps.package-version.outputs.current-version}}'

- name: ipfs-client
uses: docker/build-push-action@v2
with:
context: .
file: ./ipfs-client/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/ipfs-client:${{ steps.package-version.outputs.current-version}}'

- name: topic-viewer
uses: docker/build-push-action@v2
with:
context: .
file: ./topic-viewer/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/topic-viewer:${{ steps.package-version.outputs.current-version}}'

- name: api-docs
uses: docker/build-push-action@v2
with:
context: .
file: ./api-docs/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/api-docs:${{ steps.package-version.outputs.current-version}}'

- name: web-proxy
uses: docker/build-push-action@v2
with:
context: .
file: ./web-proxy/Dockerfile.ci
push: true
tags: 'gcr.io/hedera-registry/frontend:${{ steps.package-version.outputs.current-version}}'
2 changes: 1 addition & 1 deletion api-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-docs",
"version": "2.0.0",
"version": "2.0.1",
"description": "Swagger Documentation",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
"start": "node dist/index.js",
"test": "mocha tests/**/*.test.js --reporter mocha-junit-reporter --reporter-options mochaFile=../test_results/ui-service.xml"
},
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion auth-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ WORKDIR /usr/auth-service
COPY ./auth-service/package*.json ./
COPY ./auth-service/tsconfig.json ./
COPY ./auth-service/.env.docker ./.env
RUN npm install
RUN npm install --force
ADD ./auth-service/src ./src/.
RUN npm run build

Expand Down
2 changes: 1 addition & 1 deletion auth-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
"start": "node dist/index.js",
"test": "mocha tests/**/*.test.js --reporter mocha-junit-reporter --reporter-options mochaFile=../test_results/ui-service.xml"
},
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@
"test": "ng test",
"watch": "ng build --watch --configuration development --output-path ../www-data"
},
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion guardian-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY ./guardian-service/package*.json ./
COPY ./guardian-service/tsconfig.json ./
COPY ./guardian-service/.env.docker ./.env
COPY ./guardian-service/system-schemes ./system-schemes/.
RUN npm install
RUN npm install --force
ADD ./guardian-service/src ./src/.
RUN npm run build

Expand Down
2 changes: 1 addition & 1 deletion guardian-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@
"test:network": "mocha tests/network-tests/**/*.test.js",
"test:stability": "mocha tests/stability.test.js"
},
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"lint": "tslint --project .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion ipfs-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ WORKDIR /usr/ipfs-client
COPY ./ipfs-client/package*.json ./
COPY ./ipfs-client/tsconfig.json ./
COPY ./ipfs-client/.env.docker ./.env
RUN npm install
RUN npm install --force
ADD ./ipfs-client/src ./src/.
RUN npm run build

Expand Down
2 changes: 1 addition & 1 deletion ipfs-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
"start": "node dist/index.js",
"test": "mocha tests/**/*.test.js --reporter mocha-junit-reporter --reporter-options mochaFile=../test_results/ipfs-client.xml"
},
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion logger-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"lint": "tslint --project .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion logger-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WORKDIR /usr/logger-service
COPY ./logger-service/package*.json ./
COPY ./logger-service/tsconfig.json ./
COPY ./logger-service/.env.docker ./.env
RUN npm install
RUN npm install --force
ADD ./logger-service/src ./src/.
RUN npm run build

Expand Down
2 changes: 1 addition & 1 deletion logger-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
"lint": "tslint --project .",
"start": "node dist/index.js"
},
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion message-broker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"nodemon": "^2.0.7",
"typescript": "^4.5.5"
},
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion mrv-sender/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
"dev": "tsc -w",
"start": "node dist/index.js"
},
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion topic-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
"dev": "tsc -w",
"start": "node dist/index.js"
},
"version": "2.0.0"
"version": "2.0.1"
}

0 comments on commit df8a4c1

Please sign in to comment.