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

23 lines
770 B
YAML
Raw Normal View History

2024-10-30 06:16:00 +00:00
on:
push:
paths:
- containers/deployer/**
- .forgejo/workflows/build-deployer.yaml
jobs:
build-deployer:
runs-on: docker
container:
image: library/docker:dind
steps:
- run: apk add --no-cache nodejs git
- name: login to container registry
2024-10-30 06:42:29 +00:00
run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login --username ${{ secrets.DEPLOY_USER }} --password-stdin git.janky.solutions
2024-10-30 06:16:00 +00:00
- name: build container image
uses: docker/build-push-action@v6
with:
file: Containerfile
context: "{{defaultContext}}:containers/deployer"
tags: git.janky.solutions/jankysolutions/infra/deployer:latest
platforms: linux/amd64
2024-11-04 07:15:18 +00:00
push: ${{ github.ref == 'refs/heads/main' }}