diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d84e1d0c..ccf72c8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} IMPAAS_APP_NAME: cpp-connect - TSURU_TOKEN: ${{ secrets.IMPAAS_DEPLOY_TOKEN }} + IMPAAS_DEPLOY_TOKEN: ${{ secrets.IMPAAS_DEPLOY_TOKEN }} on: push: @@ -120,13 +120,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Install tsuru - run: curl -fsSL "https://tsuru.io/get" | bash - - name: Add ImPaaS target - run: tsuru target add impaas https://impaas.uk -s - - name: Write token to file to login - run: echo $TSURU_TOKEN > ~/.tsuru/token - - name: Check token present - run: wc -c ~/.tsuru/token - - name: Deploy app - run: tsuru app deploy -a $IMPAAS_APP_NAME --dockerfile Dockerfile --message "GitHub deployment for commit ${{ github.sha }} branch ${{ github.ref }}" + - name: Deploy to ImPaaS + id: impaas-deploy + uses: /impaas/impaas-deploy@v3 + with: + app-name: ${{ env.IMPAAS_APP_NAME }} + deployment-token: ${{ env.IMPAAS_DEPLOY_TOKEN }} + method: DOCKER_BUILD