vrcauthproxy/.forgejo/workflows/build-latest.yml

31 lines
No EOL
762 B
YAML

name: Build Docker Image
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
docker:
runs-on: docker
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver: "docker"
- 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