-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
44 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 |
---|---|---|
|
@@ -20,52 +20,52 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
#imageEKS: | ||
# name: build-docker-image-EKS | ||
# runs-on: ubuntu-22.04 | ||
# steps: | ||
# #- uses: actions/checkout@v3 | ||
# - name: Clone repo K8S | ||
# run: | | ||
# git clone --depth 1 -b cicd "https://[email protected]/ProcessMaker/pm4-k8s-distribution.git" pm4-k8s-distribution | ||
# cd pm4-k8s-distribution | ||
# - name: Print Params | ||
# run: | | ||
# echo "***********************" | ||
# echo ${{env.IMAGE_TAG}} | ||
# deploy=$(echo -n ${{env.IMAGE_TAG}} | md5sum | head -c 10) | ||
# echo ci-$deploy | ||
# echo "************************" | ||
# - name: Generate image EKS | ||
# run: | | ||
# cd pm4-k8s-distribution | ||
# bash ./images/build.local.sh $CI_PACKAGE_BRANCH ${{env.IMAGE_TAG}} | ||
# - name: List Images | ||
# run: | | ||
# docker images | ||
# echo "Version: $VERSION" | ||
# - name: Configure AWS Credentials | ||
# uses: aws-actions/configure-aws-credentials@v1 | ||
# with: | ||
# aws-access-key-id: ${{ env.aws-access-key-id }} | ||
# aws-secret-access-key: ${{ env.aws-secret-access-key }} | ||
# aws-region: ${{ env.aws-region }} | ||
# - name: Login to ECR | ||
# run: | | ||
# aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/processmaker | ||
# - name: Push OpenSource Image to ECR | ||
# run: | | ||
# cd pm4-k8s-distribution | ||
# docker tag local/processmaker:${{env.IMAGE_TAG}} public.ecr.aws/processmaker/processmaker:${{env.IMAGE_TAG}} | ||
# docker push public.ecr.aws/processmaker/processmaker:${{env.IMAGE_TAG}} | ||
# - name: Push Enterprise Image to ECR | ||
# run: | | ||
# cd pm4-k8s-distribution | ||
# docker tag local/enterprise:${{env.IMAGE_TAG}} public.ecr.aws/processmaker/enterprise:${{env.IMAGE_TAG}} | ||
# docker push public.ecr.aws/processmaker/enterprise:${{env.IMAGE_TAG}} | ||
imageEKS: | ||
name: build-docker-image-EKS | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
#- uses: actions/checkout@v3 | ||
- name: Clone repo K8S | ||
run: | | ||
git clone --depth 1 -b cicd "https://[email protected]/ProcessMaker/pm4-k8s-distribution.git" pm4-k8s-distribution | ||
cd pm4-k8s-distribution | ||
- name: Print Params | ||
run: | | ||
echo "***********************" | ||
echo ${{env.IMAGE_TAG}} | ||
deploy=$(echo -n ${{env.IMAGE_TAG}} | md5sum | head -c 10) | ||
echo ci-$deploy | ||
echo "************************" | ||
- name: Generate image EKS | ||
run: | | ||
cd pm4-k8s-distribution | ||
bash ./images/build.local.sh $CI_PACKAGE_BRANCH ${{env.IMAGE_TAG}} | ||
- name: List Images | ||
run: | | ||
docker images | ||
echo "Version: $VERSION" | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ env.aws-access-key-id }} | ||
aws-secret-access-key: ${{ env.aws-secret-access-key }} | ||
aws-region: ${{ env.aws-region }} | ||
- name: Login to ECR | ||
run: | | ||
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/processmaker | ||
- name: Push OpenSource Image to ECR | ||
run: | | ||
cd pm4-k8s-distribution | ||
docker tag local/processmaker:${{env.IMAGE_TAG}} public.ecr.aws/processmaker/processmaker:${{env.IMAGE_TAG}} | ||
docker push public.ecr.aws/processmaker/processmaker:${{env.IMAGE_TAG}} | ||
- name: Push Enterprise Image to ECR | ||
run: | | ||
cd pm4-k8s-distribution | ||
docker tag local/enterprise:${{env.IMAGE_TAG}} public.ecr.aws/processmaker/enterprise:${{env.IMAGE_TAG}} | ||
docker push public.ecr.aws/processmaker/enterprise:${{env.IMAGE_TAG}} | ||
deployEKS: | ||
name: build-deploy-EKS | ||
#needs: imageEKS | ||
needs: imageEKS | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Clone private repository | ||
|