Remove dead gpt package, make env testable, retire deleted articles #23
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: Build and Push to Appleby Cloud Registry | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to Appleby Cloud Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.REGISTRY_URL }} | |
| username: ${{ secrets.REGISTRY_USERNAME }} | |
| password: ${{ secrets.REGISTRY_PASSWORD }} | |
| - name: Build and push image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| platforms: linux/amd64 | |
| push: true | |
| tags: ${{ secrets.REGISTRY_URL }}/${{ secrets.IMAGE_NAME }}:latest | |
| - name: Deploy to Lattice | |
| run: | | |
| echo "Triggering Lattice deployment..." | |
| curl -sf -X POST "${{ secrets.LATTICE_DEPLOY_URL }}?container=${{ secrets.IMAGE_NAME }}&commit=${{ github.sha }}" \ | |
| --max-time 30 \ | |
| -o /dev/null -w "HTTP %{http_code}" | |
| echo "" | |
| echo "Container redeployed successfully!" |