wireguard-3proxy-docker/.gitea/workflows/multi-arch-gitea.yml
Reza Behzadan 35000e3f02
All checks were successful
Multi-Arch Build / docker (release) Successful in 6m24s
Back to private registry for gitea workflow
2025-01-04 18:04:36 -05:00

47 lines
1.1 KiB
YAML

name: Build and Push to Gitea Artifact Registry
on:
workflow_dispatch:
env:
IMAGE_NAME: git.behzadan.com/reza/wireguard-3proxy
jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --allow-insecure-entitlement network.host
- name: Login to Gitea Artifact Registry
uses: docker/login-action@v3
with:
registry: git.behzadan.com
username: ${{ github.actor }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
build-args: |
NODE_ENV=production
tags: |
git.behzadan.com/reza/wireguard-3proxy:latest
git.behzadan.com/reza/wireguard-3proxy:${{ github.event.release.tag_name }}