Repository navigation
Lower Sheikh Moment achievement requirement to 2 moves #123
This file contains hidden or 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: Docker build and deploy to docker hub | |
| on: | |
| push: | |
| branches: ['FASTAPI-MIGRATION'] | |
| concurrency: | |
| group: docker-build-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_LOGIN }} | |
| password: ${{ secrets.DOCKER_TOKEN }} | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| push: true | |
| tags: olegsvs/aukus4-backend | |
| build-args: | | |
| GIT_COMMIT_SHA=${{ github.sha }} | |
| # - name: Success build to telegram | |
| # if: success() | |
| # run: | | |
| # msg_text='✅ EventLab website build success!' | |
| # curl -s -X POST 'https://api.telegram.org/bot${{ secrets.TG_TOKEN }}/sendMessage' \ | |
| # -d "message_thread_id=4632&chat_id=-1002576065779_4632&text=${msg_text}&" | |
| # - name: Failure build to telegram | |
| # if: failure() | |
| # run: | | |
| # msg_text='⚠️ EventLab website build failed!' | |
| # curl -s -X POST 'https://api.telegram.org/bot${{ secrets.TG_TOKEN }}/sendMessage' \ | |
| # -d "message_thread_id=4632&chat_id=-1002576065779_4632&text=${msg_text}&" | |
| call-deploy-to-server1: | |
| needs: build | |
| uses: ./.github/workflows/deploy_to_server.yml | |
| secrets: | |
| host: ${{ secrets.HOST_AUKUS4 }} | |
| username: ${{ secrets.USERNAME_AUKUS4 }} | |
| password: ${{ secrets.PASSWORD_AUKUS4 }} | |
| port: ${{ secrets.PORT_AUKUS4 }} | |
| server_name: "server1" | |
| tg_token: ${{ secrets.TG_TOKEN }} |