infra/.forgejo/workflows/build-pethublocal.yaml

22 lines
827 B
YAML
Raw Normal View History

2024-09-20 23:51:35 +00:00
on:
push:
paths:
- .forgejo/workflows/build-pethublocal.yaml
jobs:
build-pethublocal:
runs-on: docker
container:
image: library/docker:dind
steps:
- run: apk add --no-cache nodejs git
2024-09-20 23:53:28 +00:00
- run: git clone https://github.com/PetHubLocal/pethublocal && git -C pethublocal checkout d3fc739afe381398a0d9fb612b9b087508ed1f95
2024-09-20 23:51:35 +00:00
- name: login to container registry
run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login --username ${{ secrets.DEPLOY_USER }} --password-stdin git.janky.solutions
- name: build container image
uses: docker/build-push-action@v6
with:
2024-09-20 23:53:28 +00:00
context: pethublocal
2024-09-20 23:51:35 +00:00
tags: git.janky.solutions/jankysolutions/infra/pethublocal:latest
platforms: linux/amd64
2024-11-04 07:15:18 +00:00
push: ${{ github.ref == 'refs/heads/main' }}