diff --git a/.github/workflows/cd-workflows.yml b/.github/workflows/cd-workflows.yml index 18882ba..aec5423 100644 --- a/.github/workflows/cd-workflows.yml +++ b/.github/workflows/cd-workflows.yml @@ -5,7 +5,6 @@ on: branches: - main - dev - - actions-ecr pull_request: branches: - main @@ -99,27 +98,4 @@ jobs: echo "Starting docker build" docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . echo "Pushing image to ECR..." - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - - # # requires dependency from step above - # needs: code-test - # name: Build Docker Image - # runs-on: ubuntu-latest - # steps: - # - name: Checkout Code - # uses: actions/checkout@v2 - # - name: Docker login - # env: - # DOCKER_USER: ${{ secrets.DOCKER_USER }} - # DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - # run: | - # echo "Authenticate to Docker" - # docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - # - name: Docker build - # run: | - # echo "Start docker build" - # docker build . -t openlxp/openlxp-xds - # - name: Push Image - # run: | - # echo "Push new image to the Dockerhub repository" - # docker push openlxp/openlxp-xds \ No newline at end of file + docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \ No newline at end of file