build-and-push
This commit is contained in:
parent
67a545637f
commit
dda8f90a36
@ -3,7 +3,7 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions! 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
checkout:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Despite not being present in the QuickStart instructions, this step is necessary in order to install `node`,
|
||||
@ -51,5 +51,25 @@ jobs:
|
||||
git submodule init
|
||||
git submodule update --recursive
|
||||
hugo --source blog
|
||||
|
||||
# TODO - build image, then publish
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.scubbo.org
|
||||
username: scubbo
|
||||
password: ${{ secrets.PAT_FOR_GITEA_ACCESS }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
gitea.scubbo.org/scubbo/blog:latest
|
||||
gitea.scubbo.org/scubbo/blog:${{ gitea.sha }}
|
||||
|
||||
# TODO - update deployment with new image
|
||||
|
Loading…
x
Reference in New Issue
Block a user