Skip to content

Conversation

@devindford
Copy link
Contributor

@devindford devindford commented Apr 11, 2023

Description

  • Update the deploy workflow to deploy both frontend platform images

How to test

Another job that has to merge but you can test the if logic locally by creating a shell file and pasting the following code

#!/bin/bash

          IMAGES=(
            im23xsa/storedog/backend
            im23xsa/storedog/discounts
            im23xsa/storedog/ads
            im23xsa/storedog/ads-java
            im23xsa/storedog/attackbox
            im23xsa/storedog/auth
            im23xsa/storedog/nginx
            im23xsa/storedog/frontend
            im23xsa/storedog/dbm
          )

           for i in "${IMAGES[@]}"
          do
            echo "$i"

            echo "$i":latest
            echo "$i":latest "$i":1.0.1
            echo "$i":1.0.1

            # Since frontend is images are build to be platform specific, we need to tag and deploy accordingly
            if [[ "$i" == *"storedog/frontend"* ]]; then

              # build frontend arm image
              echo "$i":arm-latest
              echo "$i":arm-latest "$i":arm-1.0.1
              echo "$i":arm-1.0.1

            fi

          done

          echo "All done"

ensure that all jobs print as expected

@devindford devindford merged commit f8080ae into main Apr 11, 2023
@devindford devindford deleted the devin.ford/deploy-flow-update branch April 11, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants