Skip to content

Commit

Permalink
ci: use gh action instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Gum-Joe committed Aug 21, 2024
1 parent 1eab5e1 commit f2b3743
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit f2b3743

Please sign in to comment.