Skip to content

Commit

Permalink
remove long builds, pushes for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
RobGeada committed Dec 10, 2024
1 parent f6bac5d commit 4f9472c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,23 @@ jobs:
echo "JOB_IMAGE_NAME=${{ vars.QUAY_RELEASE_LMES_JOB_REPO }}" >> $GITHUB_ENV
# Run docker commands
- name: Put expiry date on CI-tagged image
if: env.BUILD_CONTEXT == 'ci'
run: sed -i 's#summary="odh-trustyai-service-operator\"#summary="odh-trustyai-service-operator" \\ \n quay.expires-after=7d#' Dockerfile
- name: Log in to Quay
run: docker login -u ${{ secrets.QUAY_ROBOT_USERNAME }} -p ${{ secrets.QUAY_ROBOT_SECRET }} quay.io
- name: Build main image
run: docker build -t ${{ env.IMAGE_NAME }}:$TAG .
- name: Push main image to Quay
run: docker push ${{ env.IMAGE_NAME }}:$TAG
- name: Build LMES driver image
run: docker build -f Dockerfile.driver -t ${{ env.DRIVER_IMAGE_NAME }}:$TAG .
- name: Push LMES driver image to Quay
run: docker push ${{ env.DRIVER_IMAGE_NAME }}:$TAG
- name: Build LMES job image
run: docker build -f Dockerfile.lmes-job -t ${{ env.JOB_IMAGE_NAME }}:$TAG .
- name: Push LMES job image to Quay
run: docker push ${{ env.JOB_IMAGE_NAME }}:$TAG
# - name: Put expiry date on CI-tagged image
# if: env.BUILD_CONTEXT == 'ci'
# run: sed -i 's#summary="odh-trustyai-service-operator\"#summary="odh-trustyai-service-operator" \\ \n quay.expires-after=7d#' Dockerfile
# - name: Log in to Quay
# run: docker login -u ${{ secrets.QUAY_ROBOT_USERNAME }} -p ${{ secrets.QUAY_ROBOT_SECRET }} quay.io
# - name: Build main image
# run: docker build -t ${{ env.IMAGE_NAME }}:$TAG .
# - name: Push main image to Quay
# run: docker push ${{ env.IMAGE_NAME }}:$TAG
# - name: Build LMES driver image
# run: docker build -f Dockerfile.driver -t ${{ env.DRIVER_IMAGE_NAME }}:$TAG .
# - name: Push LMES driver image to Quay
# run: docker push ${{ env.DRIVER_IMAGE_NAME }}:$TAG
# - name: Build LMES job image
# run: docker build -f Dockerfile.lmes-job -t ${{ env.JOB_IMAGE_NAME }}:$TAG .
# - name: Push LMES job image to Quay
# run: docker push ${{ env.JOB_IMAGE_NAME }}:$TAG

# Create CI Manifests
- name: Set up manifests for CI
Expand Down

0 comments on commit 4f9472c

Please sign in to comment.