Update getting started .NET version (#428) #152
This file contains 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 IceRPC docs | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: ghcr.io/icerpc/icerpc-docs:latest | |
- name: Deploy docs | |
uses: appleboy/ssh-action@v1.0.3 | |
with: | |
host: ${{ secrets.WEB_HOST }} | |
username: ${{ secrets.WEB_USERNAME }} | |
key: ${{ secrets.WEB_DEPLOY_KEY }} | |
script_stop: true | |
script: | | |
cd services | |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
docker compose pull icerpc-docs | |
docker compose up -d icerpc-docs | |
- name: Delete old container images | |
uses: actions/delete-package-versions@v5 | |
with: | |
package-name: icerpc-docs | |
package-type: container | |
min-versions-to-keep: 10 | |
delete-only-untagged-versions: true |