build-and-push

This commit is contained in:
Jack Jackson 2025-02-25 20:35:03 -08:00
parent 67a545637f
commit dda8f90a36

View File

@ -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`,
@ -51,5 +51,25 @@ jobs:
git submodule init git submodule init
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