Improve Wording of Slice1 Custom Type Encoding (#417) #118
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: | |
build-push-deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
push: true | |
tags: ghcr.io/icerpc/icerpc-docs:latest | |
- name: Deploy docs | |
uses: appleboy/ssh-action@v1.0.0 | |
with: | |
host: ${{ secrets.WEB_HOST }} | |
username: ${{ secrets.WEB_USERNAME }} | |
key: ${{ secrets.WEB_DEPLOY_KEY }} | |
script_stop: true | |
script: | | |
cd services | |
docker-compose pull icerpc-docs | |
docker-compose up -d icerpc-docs | |
- name: Delete old container images | |
uses: actions/delete-package-versions@v4 | |
with: | |
package-name: icerpc-docs | |
package-type: container | |
min-versions-to-keep: 10 | |
delete-only-untagged-versions: true |