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]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checkout:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Despite not being present in the QuickStart instructions, this step is necessary in order to install `node`,
|
# Despite not being present in the QuickStart instructions, this step is necessary in order to install `node`,
|
||||||
@ -52,4 +52,24 @@ jobs:
|
|||||||
git submodule update --recursive
|
git submodule update --recursive
|
||||||
hugo --source blog
|
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