Skip to content

Commit

Permalink
More conflicts fixed + Added prod suffix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahadik, Mukul Chandrakant authored and Mahadik, Mukul Chandrakant committed Aug 14, 2024
1 parent 8459ab1 commit ae5ac47
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/image_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ name: docker-image-push-public-dash

on:
push:
<<<<<<< HEAD
branches: [ image-push-2 ]
=======
branches: [ main ]
>>>>>>> main

workflow_dispatch:
inputs:
Expand All @@ -18,11 +14,7 @@ env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}

<<<<<<< HEAD
jobs:
=======
jobs:
>>>>>>> main
build:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -87,22 +79,14 @@ jobs:
- name: rename docker images
run: |
if [ "${{ github.event_name }}" == "push" ]; then
<<<<<<< HEAD
docker image tag em-pub-dash/frontend:latest $DOCKER_USER/${GITHUB_REPOSITORY#*/}:${GITHUB_REF##*/}_${{ steps.date.outputs.date }}
=======
docker image tag em-pub-dash/frontend:latest $DOCKER_USER/${GITHUB_REPOSITORY#*/}_frontend:${GITHUB_REF##*/}_${{ steps.date.outputs.date }}
>>>>>>> main
docker image tag em-pub-dash-prod/frontend:latest $DOCKER_USER/${GITHUB_REPOSITORY#*/}_frontend:${GITHUB_REF##*/}_${{ steps.date.outputs.date }}
fi
docker image tag em-pub-dash/viz-scripts:latest $DOCKER_USER/${GITHUB_REPOSITORY#*/}_notebook:${GITHUB_REF##*/}_${{ steps.date.outputs.date }}
docker image tag em-pub-dash-prod/viz-scripts:latest $DOCKER_USER/${GITHUB_REPOSITORY#*/}_notebook:${GITHUB_REF##*/}_${{ steps.date.outputs.date }}
- name: push docker images
run: |
if [ "${{ github.event_name }}" == "push" ]; then
<<<<<<< HEAD
docker push $DOCKER_USER/${GITHUB_REPOSITORY#*/}:${GITHUB_REF##*/}_${{ steps.date.outputs.date }}
=======
docker push $DOCKER_USER/${GITHUB_REPOSITORY#*/}_frontend:${GITHUB_REF##*/}_${{ steps.date.outputs.date }}
>>>>>>> main
fi
docker push $DOCKER_USER/${GITHUB_REPOSITORY#*/}_notebook:${GITHUB_REF##*/}_${{ steps.date.outputs.date }}
Expand Down

0 comments on commit ae5ac47

Please sign in to comment.