Skip to content

Commit

Permalink
De-clutter devnet/testnet deployment workflows (#1514)
Browse files Browse the repository at this point in the history
* Remove build and push container from devnet deployment workflow

* Remove build and publish docker container from devnets deployment workflows

* Remove unit test execution from devnets deployment workflows
  • Loading branch information
Stefan-Ethernal committed May 19, 2023
1 parent ed61412 commit 14611ef
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 147 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/deploy.devnet.eph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,55 +24,6 @@ jobs:
name: Build
uses: ./.github/workflows/build.yml

test:
name: Test
uses: ./.github/workflows/test.yml
needs: build
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

container_image_build:
name: Build/Push Container Image
runs-on: ubuntu-latest
environment: devnet-ephemeral
needs: build
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Download Polygon Edge Artifact
uses: actions/download-artifact@v3
with:
name: polygon-edge
- run: tar -xvzf polygon-edge.tar.gz

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build, tag, and push docker image to Amazon ECR
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: library/polygon-edge
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $REGISTRY/$REPOSITORY:devnet-ephemeral -t $REGISTRY/$REPOSITORY:$IMAGE_TAG -f Dockerfile.release .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
docker push $REGISTRY/$REPOSITORY:devnet-ephemeral
deploy_eph_devnet:
name: Deploy Ephemeral DevNet
needs: build
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/deploy.devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,55 +24,6 @@ jobs:
name: Build
uses: ./.github/workflows/build.yml

test:
name: Test
uses: ./.github/workflows/test.yml
needs: build
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

container_image_build:
name: Build/Push Container Image
runs-on: ubuntu-latest
environment: devnet
needs: build
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Download Polygon Edge Artifact
uses: actions/download-artifact@v3
with:
name: polygon-edge
- run: tar -xvzf polygon-edge.tar.gz

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build, tag, and push docker image to Amazon ECR
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: library/polygon-edge
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $REGISTRY/$REPOSITORY:devnet -t $REGISTRY/$REPOSITORY:$IMAGE_TAG -f Dockerfile.release .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
docker push $REGISTRY/$REPOSITORY:devnet
deploy_devnet:
name: Deploy DevNet
needs: build
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/deploy.testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,55 +23,6 @@ jobs:
uses: ./.github/workflows/build.yml
name: Build

test:
uses: ./.github/workflows/test.yml
name: Test
needs: build
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

container_image_build:
name: Build/Push Container Image
runs-on: ubuntu-latest
environment: testnet
needs: build
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Download Polygon Edge Artifact
uses: actions/download-artifact@v3
with:
name: polygon-edge
- run: tar -xvzf polygon-edge.tar.gz

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build, tag, and push docker image to Amazon ECR
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: library/polygon-edge
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $REGISTRY/$REPOSITORY:testnet -t $REGISTRY/$REPOSITORY:$IMAGE_TAG -f Dockerfile.release .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
docker push $REGISTRY/$REPOSITORY:testnet
deploy_testnet:
name: Update TestNet
needs: build
Expand Down

0 comments on commit 14611ef

Please sign in to comment.