Skip to content

Commit

Permalink
fix(workflow): add orb-migrate to main and fix its requirements on go…
Browse files Browse the repository at this point in the history
…-develop.yml. (#2966)

Co-authored-by: Luiz Pegoraro <[email protected]>
  • Loading branch information
lpegoraro and Luiz Pegoraro authored Jan 25, 2024
1 parent dc99047 commit 3795536
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/go-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,7 @@ jobs:
package-migrate:
needs:
- package-ui-dependencies
- package-ui
- prebuild
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/go-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
- 'cmd/sinks/**'
- 'sinker/**'
- 'cmd/sinker/**'
- 'maestro/**'
- 'cmd/maestro/**'
migrate:
- 'migrate/**'
- 'cmd/migrate/**'
ui:
- 'ui/**'
- name: Set branch name
Expand Down Expand Up @@ -384,6 +389,30 @@ jobs:
run: |
docker push -a orbcommunity/orb-ui
package-migrate:
needs:
- prebuild
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build orb migrate service image
if: ${{ needs.prebuild.outputs.migrate == 'true' }}
run: |
SERVICE=migrate make build_docker
- name: Login to Docker Hub orbcommunity
if: ${{ needs.prebuild.outputs.migrate == 'true' }}
uses: docker/login-action@v3
with:
username: ${{ secrets.ORB_DOCKERHUB_USERNAME }}
password: ${{ secrets.ORB_DOCKERHUB_TOKEN }}

- name: Push orb migrate service image orbcommunity
if: ${{ needs.prebuild.outputs.migrate == 'true' }}
run: |
docker push -a orbcommunity/orb-migrate
release:
needs:
- prebuild
Expand All @@ -392,6 +421,7 @@ jobs:
- package-sinker
- package-sinks
- package-ui
- package-migrate
runs-on: ubuntu-latest
# if this is a push into one of our main branches (rather than just a pull request), we will also package
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 3795536

Please sign in to comment.