Try and build & push the docker image
Some checks failed
Build and copy to prod / build-and-copy (push) Failing after 2m29s

This commit is contained in:
Lewis Dale 2024-10-18 19:23:08 +01:00
parent 802ae697c3
commit e4a276b51e

View File

@ -37,13 +37,19 @@ jobs:
NODE_ENV: production NODE_ENV: production
OMNIVORE_API_KEY: ${{ secrets.OMNIVORE_API_KEY }} OMNIVORE_API_KEY: ${{ secrets.OMNIVORE_API_KEY }}
UMAMI_API_KEY: ${{ secrets.UMAMI_API_KEY }} UMAMI_API_KEY: ${{ secrets.UMAMI_API_KEY }}
- name: Install SSH Key - name: Set up Docker Buildx
uses: shimataro/ssh-key-action@v2 uses: docker/setup-buildx-action@v3
- name: Login to gitea container registry
uses: docker/login-action@v3
with: with:
key: ${{ secrets.SSH_KEY }} registry: git.lewisdale.dev
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }} username: ${{ secrets.DOCKER_USERNAME }}
- name: Copy _site to prod password: ${{ secrets.DOCKER_PASSWORD }}
run: scp -rp _site/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/blog/ - name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: git.lewisdale.dev/lewis/blog:latest
- name: Purge XML files from cache - name: Purge XML files from cache
run: | run: |
curl --request POST \ curl --request POST \