Revert node-nats-treaming version back to 0.2.6 to avoid breaking change #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: importer-mankeli-staging | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- importer-mankeli/** | |
- .github/workflows/importer-mankeli-staging.yaml | |
- docker-compose.ci.yml | |
jobs: | |
build_and_push_anon_sis_importer_db: | |
name: 'Build anon sis-importer-db and push to toska hub if new migrations have been added' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: check_migrations | |
with: | |
filters: | | |
migrations: | |
- 'importer-mankeli/src/db/migrations/**' | |
- '.github/workflows/importer-mankeli-staging.yaml' | |
- name: 'Login to toska docker registry' | |
uses: docker/login-action@v3 | |
with: | |
registry: registry-toska.ext.ocp-prod-0.k8s.it.helsinki.fi | |
username: ${{ secrets.TOSKAREGISTRY_USERNAME }} | |
password: ${{ secrets.TOSKAREGISTRY_PASSWORD }} | |
- name: 'Let importer-mankeli run migrations, then push new version of image to toska hub' | |
if: steps.check_migrations.outputs.migrations == 'true' | |
run: | | |
docker compose --file docker-compose.ci.yml up --detach importer-mankeli | |
sleep 30 # wait for importer-mankeli to start and run migrations | |
docker commit sis-importer-db registry-toska.ext.ocp-prod-0.k8s.it.helsinki.fi/sis-importer-db | |
docker push registry-toska.ext.ocp-prod-0.k8s.it.helsinki.fi/sis-importer-db | |
test: | |
runs-on: ubuntu-latest | |
needs: | |
- build_and_push_anon_sis_importer_db | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
uses: ./.github/actions/run-tests | |
with: | |
path: importer-mankeli | |
build-and-push: | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build and push image | |
uses: ./.github/actions/build-and-push-image | |
with: | |
image: importer-mankeli | |
tag: staging | |
password: ${{ secrets.QUAY_IO_TOKEN }} |