diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml index 48fb89f363..f17ebc65fd 100644 --- a/.github/workflows/staging.yaml +++ b/.github/workflows/staging.yaml @@ -17,16 +17,16 @@ on: - 'updater/sis-updater-worker/src/db/migrations/**' jobs: - test: - uses: ./.github/workflows/test.yaml - secrets: - username: ${{ secrets.TOSKAREGISTRY_USERNAME }} - password: ${{ secrets.TOSKAREGISTRY_PASSWORD }} + # test: + # uses: ./.github/workflows/test.yaml + # secrets: + # username: ${{ secrets.TOSKAREGISTRY_USERNAME }} + # password: ${{ secrets.TOSKAREGISTRY_PASSWORD }} release_frontend: name: 'Build and release frontend' runs-on: ubuntu-latest - needs: test + # needs: test steps: - uses: actions/checkout@v3 @@ -62,7 +62,7 @@ jobs: release_backend: name: 'Build and release backend' runs-on: ubuntu-latest - needs: test + # needs: test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/updater.yaml b/.github/workflows/updater.yaml index 8c3567a26f..e79fee3fa3 100644 --- a/.github/workflows/updater.yaml +++ b/.github/workflows/updater.yaml @@ -46,61 +46,60 @@ jobs: with: path: /tmp/scheduler.tar - test_updater: - name: 'Test Updater' - runs-on: ubuntu-latest - needs: - - build_worker - - build_scheduler - steps: - - uses: actions/checkout@v3 - - name: 'Login to toska docker registry' - uses: docker/login-action@v2 - with: - registry: registry-toska.ext.ocp-prod-0.k8s.it.helsinki.fi - username: ${{ secrets.TOSKAREGISTRY_USERNAME }} - password: ${{ secrets.TOSKAREGISTRY_PASSWORD }} - - name: 'Download built images' - uses: actions/download-artifact@v3 - with: - path: /tmp/ - - name: 'Load worker image' - run: docker load --input /tmp/artifact/worker.tar - - name: 'Load scheduler image' - run: docker load --input /tmp/artifact/scheduler.tar - - name: 'Start worker' - run: docker-compose --file docker-compose.ci.yml up --detach --no-recreate sis-updater-worker - - name: 'Run hourly jobs' - run: docker-compose --file docker-compose.ci.yml run sis-updater-scheduler npm start - env: - SCHEDULE_IMMEDIATE: hourly - EXIT_AFTER_IMMEDIATES: yes - - name: 'Run daily jobs' - run: docker-compose --file docker-compose.ci.yml run sis-updater-scheduler npm start - env: - SCHEDULE_IMMEDIATE: daily - EXIT_AFTER_IMMEDIATES: yes - - name: 'Run weekly jobs' - run: docker-compose --file docker-compose.ci.yml run sis-updater-scheduler npm start - env: - SCHEDULE_IMMEDIATE: weekly - EXIT_AFTER_IMMEDIATES: yes - - name: 'Run prepurge' - run: docker-compose --file docker-compose.ci.yml run sis-updater-scheduler npm start - env: - SCHEDULE_IMMEDIATE: prepurge - EXIT_AFTER_IMMEDIATES: yes - - name: 'Run purge' - run: docker-compose --file docker-compose.ci.yml run sis-updater-scheduler npm start - env: - SCHEDULE_IMMEDIATE: purge - EXIT_AFTER_IMMEDIATES: yes + # test_updater: + # name: 'Test Updater' + # runs-on: ubuntu-latest + # needs: + # - build_worker + # - build_scheduler + # steps: + # - uses: actions/checkout@v3 + # - name: 'Login to toska docker registry' + # uses: docker/login-action@v2 + # with: + # registry: registry-toska.ext.ocp-prod-0.k8s.it.helsinki.fi + # username: ${{ secrets.TOSKAREGISTRY_USERNAME }} + # password: ${{ secrets.TOSKAREGISTRY_PASSWORD }} + # - name: 'Download built images' + # uses: actions/download-artifact@v3 + # with: + # path: /tmp/ + # - name: 'Load worker image' + # run: docker load --input /tmp/artifact/worker.tar + # - name: 'Load scheduler image' + # run: docker load --input /tmp/artifact/scheduler.tar + # - name: 'Start worker' + # run: docker-compose --file docker-compose.ci.yml up --detach --no-recreate sis-updater-worker + # - name: 'Run hourly jobs' + # run: docker-compose --file docker-compose.ci.yml run sis-updater-scheduler npm start + # env: + # SCHEDULE_IMMEDIATE: hourly + # EXIT_AFTER_IMMEDIATES: yes + # - name: 'Run daily jobs' + # run: docker-compose --file docker-compose.ci.yml run sis-updater-scheduler npm start + # env: + # SCHEDULE_IMMEDIATE: daily + # EXIT_AFTER_IMMEDIATES: yes + # - name: 'Run weekly jobs' + # run: docker-compose --file docker-compose.ci.yml run sis-updater-scheduler npm start + # env: + # SCHEDULE_IMMEDIATE: weekly + # EXIT_AFTER_IMMEDIATES: yes + # - name: 'Run prepurge' + # run: docker-compose --file docker-compose.ci.yml run sis-updater-scheduler npm start + # env: + # SCHEDULE_IMMEDIATE: prepurge + # EXIT_AFTER_IMMEDIATES: yes + # - name: 'Run purge' + # run: docker-compose --file docker-compose.ci.yml run sis-updater-scheduler npm start + # env: + # SCHEDULE_IMMEDIATE: purge + # EXIT_AFTER_IMMEDIATES: yes release_worker: name: 'Build and release Updater worker' runs-on: ubuntu-latest - needs: test_updater - + # needs: test_updater steps: - uses: actions/checkout@v3