Try and build & push the docker image
Some checks failed
Build and copy to prod / build-and-copy (push) Failing after 2m29s
Some checks failed
Build and copy to prod / build-and-copy (push) Failing after 2m29s
This commit is contained in:
parent
802ae697c3
commit
e4a276b51e
@ -37,13 +37,19 @@ jobs:
|
||||
NODE_ENV: production
|
||||
OMNIVORE_API_KEY: ${{ secrets.OMNIVORE_API_KEY }}
|
||||
UMAMI_API_KEY: ${{ secrets.UMAMI_API_KEY }}
|
||||
- name: Install SSH Key
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to gitea container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
|
||||
- name: Copy _site to prod
|
||||
run: scp -rp _site/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/blog/
|
||||
registry: git.lewisdale.dev
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- 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
|
||||
run: |
|
||||
curl --request POST \
|
||||
|
Loading…
Reference in New Issue
Block a user