Skip to content

Commit

Permalink
remove deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
beeequeue committed Jun 16, 2024
1 parent d5598ae commit e50749b
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,33 +141,9 @@ jobs:
if: github.ref == 'refs/heads/master'
needs: [lint, test, typecheck, build]
runs-on: ubuntu-latest
permissions:
packages: read
concurrency:
group: deploy
environment:
name: prod
url: https://arm.haglund.dev/api

steps:
- name: Login to GitHub Container Registry
if: github.ref == 'refs/heads/master'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4

- name: Declare some variables
id: sha
shell: bash
run: echo "short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Push to dokku
uses: dokku/[email protected]
with:
git_remote_url: "ssh://dokku@${{ secrets.SERVER_IP }}:22/arm-server"
deploy_docker_image: "ghcr.io/beeequeue/arm-server:${{ steps.sha.outputs.short }}"
ssh_private_key: ${{ secrets.DOKKU_PRIVATE_KEY }}
- run: echo 'Deployed! :)'

0 comments on commit e50749b

Please sign in to comment.