2025-01-20 20:59:04 -05:00

24 lines
717 B
YAML

name: build
on:
push:
branches: ["master"]
jobs:
# Build job
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to registry
uses: docker/login-action@v3
with:
registry: git.saintnet.tech
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
env:
IMAGE_NAME: saintnet_stickers
REGISTRY: git.saintnet.tech
REPO_OWNER: stryan
run: "docker build -o type=docker -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest -f Containerfile .\ndocker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest \n"