-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #993 from mandeepdhiman123/1.2.0-rc2
Removed key manager, keys-migrator, keys-generator build from commons
- Loading branch information
Showing
258 changed files
with
3 additions
and
24,162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -385,67 +385,6 @@ jobs: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required | ||
if: failure() # Pick up events even if the job fails or is canceled. | ||
|
||
docker-kernel-keymanager-service: | ||
needs: build | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
NAMESPACE: ${{ secrets. dev_namespace_docker_hub }} | ||
SERVICE_NAME: kernel-keymanager-service | ||
SERVICE_LOCATION: kernel/kernel-keymanager-service | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v1 | ||
with: | ||
name: release | ||
path: ./ | ||
|
||
- name: Setup branch name | ||
run: | | ||
# Strip git ref prefix from version | ||
echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV | ||
echo ${{ env.BRANCH_NAME }} | ||
- name: Get version info from pom | ||
id: getPomVersion | ||
uses: mavrosxristoforos/[email protected] | ||
with: | ||
xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml | ||
xpath: /*[local-name()="project"]/*[local-name()="version"] | ||
|
||
- name: Unzip and extract the id-repository-vid-service | ||
run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target" | ||
|
||
- name: Build image | ||
run: | | ||
cd "./${{env.SERVICE_LOCATION}}" | ||
docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }} | ||
- name: Log into registry | ||
run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin | ||
|
||
- name: Push image | ||
run: | | ||
IMAGE_ID=$NAMESPACE/$SERVICE_NAME | ||
# Change all uppercase to lowercase | ||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') | ||
echo "push version ${{steps.getPomVersion.outputs.info}}" | ||
VERSION=$BRANCH_NAME | ||
echo IMAGE_ID=$IMAGE_ID | ||
echo VERSION=$VERSION | ||
docker tag $SERVICE_NAME $IMAGE_ID:$VERSION | ||
docker push $IMAGE_ID:$VERSION | ||
- uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took # selectable (default: repo,message) | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required | ||
if: failure() # Pick up events even if the job fails or is canceled. | ||
|
||
|
||
docker-kernel-pridgenerator-service: | ||
needs: build | ||
|
||
|
@@ -685,118 +624,3 @@ jobs: | |
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required | ||
if: failure() # Pick up events even if the job fails or is canceled. | ||
|
||
docker-kernel-keys-generator: | ||
needs: build | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
NAMESPACE: ${{ secrets. dev_namespace_docker_hub }} | ||
SERVICE_NAME: keys-generator | ||
SERVICE_LOCATION: kernel/keys-generator | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v1 | ||
with: | ||
name: release | ||
path: ./ | ||
|
||
- name: Setup branch name | ||
run: | | ||
# Strip git ref prefix from version | ||
echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV | ||
echo ${{ env.BRANCH_NAME }} | ||
- name: Get version info from pom | ||
id: getPomVersion | ||
uses: mavrosxristoforos/[email protected] | ||
with: | ||
xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml | ||
xpath: /*[local-name()="project"]/*[local-name()="version"] | ||
|
||
- name: Unzip and extract the keys-generator | ||
run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target" | ||
|
||
- name: Build image | ||
run: | | ||
cd "./${{env.SERVICE_LOCATION}}" | ||
docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }} | ||
- name: Log into registry | ||
run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin | ||
|
||
- name: Push image | ||
run: | | ||
IMAGE_ID=$NAMESPACE/$SERVICE_NAME | ||
# Change all uppercase to lowercase | ||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') | ||
echo "push version ${{steps.getPomVersion.outputs.info}}" | ||
VERSION=$BRANCH_NAME | ||
echo IMAGE_ID=$IMAGE_ID | ||
echo VERSION=$VERSION | ||
docker tag $SERVICE_NAME $IMAGE_ID:$VERSION | ||
docker push $IMAGE_ID:$VERSION | ||
- uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took # selectable (default: repo,message) | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required | ||
if: failure() # Pick up events even if the job fails or is canceled. | ||
|
||
docker-kernel-keys-migrator: | ||
needs: build | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
NAMESPACE: ${{ secrets. dev_namespace_docker_hub }} | ||
SERVICE_NAME: keys-migrator | ||
SERVICE_LOCATION: kernel/keys-migrator | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v1 | ||
with: | ||
name: release | ||
path: ./ | ||
|
||
- name: Setup branch name | ||
run: | | ||
# Strip git ref prefix from version | ||
echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV | ||
echo ${{ env.BRANCH_NAME }} | ||
- name: Get version info from pom | ||
id: getPomVersion | ||
uses: mavrosxristoforos/[email protected] | ||
with: | ||
xml-file: ./${{ env.SERVICE_LOCATION }}/pom.xml | ||
xpath: /*[local-name()="project"]/*[local-name()="version"] | ||
|
||
- name: Unzip and extract the keys-migrator | ||
run: unzip -uj "release.zip" "${{ env.SERVICE_LOCATION }}/target/*" -d "./${{ env.SERVICE_LOCATION }}/target" | ||
|
||
- name: Build image | ||
run: | | ||
cd "./${{env.SERVICE_LOCATION}}" | ||
docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }} | ||
- name: Log into registry | ||
run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin | ||
|
||
- name: Push image | ||
run: | | ||
IMAGE_ID=$NAMESPACE/$SERVICE_NAME | ||
# Change all uppercase to lowercase | ||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') | ||
echo "push version ${{steps.getPomVersion.outputs.info}}" | ||
VERSION=$BRANCH_NAME | ||
echo IMAGE_ID=$IMAGE_ID | ||
echo VERSION=$VERSION | ||
docker tag $SERVICE_NAME $IMAGE_ID:$VERSION | ||
docker push $IMAGE_ID:$VERSION | ||
- uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took # selectable (default: repo,message) | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required | ||
if: failure() # Pick up events even if the job fails or is canceled. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.