Deploy latest image tags to testing-stable.plone.org #8
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: Deploy latest image tags to testing-stable.plone.org | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| concurrency: deploy_ploneorg_testingstable | |
| runs-on: ubuntu-latest | |
| environment: | |
| # Only exception: keep this to testing.plone.org, otherwise I need to recreate the environment on githubs plone.org repo. | |
| name: testing.plone.org | |
| url: https://testing-stable.plone.org | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Deploy 'latest' image tags to testing-stable.plone.org | |
| uses: kitconcept/docker-stack-deploy@v1.4.0 | |
| with: | |
| registry: "ghcr.io" | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.DEPLOY_GHCR_READ_TOKEN }} | |
| remote_host: ${{ vars.DEPLOY_HOST }} | |
| remote_port: ${{ vars.DEPLOY_PORT }} | |
| remote_user: ${{ vars.DEPLOY_USER }} | |
| remote_private_key: ${{ secrets.DEPLOY_SSH }} | |
| stack_file: "devops/stacks/testing-stable.plone.org.yml" | |
| stack_name: "testing-stable-plone-org" | |
| env_file: | | |
| STACK_NAME=testing-stable-plone-org | |
| DB_HOST=${{ vars.DB_HOST }} | |
| DB_NAME=${{ vars.DB_NAME }} | |
| DB_USER=${{ vars.DB_USER }} | |
| DB_PORT=${{ vars.DB_PORT }} | |
| DB_PASSWORD=${{ secrets.DB_PASSWORD }} | |
| deploy_timeout: 480 |