Some checks failed
Build and Push to Gitea Artifact Registry / docker (release) Failing after 14s
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: Build and Push to Gitea Artifact Registry
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
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 }}
|
|
|