Skip to content

Commit

Permalink
cleaned up cd-workflows.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy-sandhu committed Nov 8, 2023
1 parent 9a8be27 commit 2063369
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/cd-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
- dev
- actions-ecr
pull_request:
branches:
- main
Expand Down Expand Up @@ -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
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG

0 comments on commit 2063369

Please sign in to comment.