vrcauthproxy/.forgejo/workflows/build-latest.yml
2025-05-22 14:21:58 -04:00

41 lines
No EOL
980 B
YAML

name: Build Docker Image
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
docker:
runs-on: docker
services:
docker:
image: docker:24.0.7-dind
privileged: true
options: >-
--privileged
--env DOCKER_TLS_CERTDIR=
ports:
- 2375:2375
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
endpoint: tcp://localhost:2375
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
file: ./Dockerfile
platforms: linux/amd64
tags: pupsiehub/vrcauthproxy:latest
cache-from: type=gha
cache-to: type=gha,mode=max