aprs.me/.forgejo/workflows/build.yaml
Graham McIntire 72e3e91d68
Some checks failed
Build and Push / Build and Push Docker Image (push) Failing after 4s
fix: use full URL for kaniko-build action to point to git.mcintire.me
2026-07-26 18:53:56 -05:00

38 lines
1 KiB
YAML

name: Build and Push
on:
push:
branches:
- main
jobs:
build-and-push:
name: Build and Push Docker Image
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: https://github.com/actions/checkout@v4
- name: Generate image tag
id: tag
run: |
TIMESTAMP=$(date +%s)
SHORT_SHA=$(git rev-parse --short=7 HEAD | cut -c1-7)
TAG="main-${TIMESTAMP}-${SHORT_SHA}"
echo "tag=${TAG}" >> $GITHUB_OUTPUT
- name: Build and Push via Kaniko
uses: https://git.mcintire.me/graham/infra/.forgejo/actions/kaniko-build@main
with:
token: ${{ secrets.FORGEJO_TOKEN }}
image: git.mcintire.me/graham/aprs.me
tag: ${{ steps.tag.outputs.tag }}
- name: Tag as latest
uses: https://git.mcintire.me/graham/infra/.forgejo/actions/kaniko-build@main
with:
token: ${{ secrets.FORGEJO_TOKEN }}
image: git.mcintire.me/graham/aprs.me
tag: latest
extra_args: ""