Compare commits

..

No commits in common. "main" and "v1.1.3" have entirely different histories.
main ... v1.1.3

4 changed files with 10 additions and 92 deletions

View File

@ -1,46 +0,0 @@
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 }}

View File

@ -11,6 +11,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Read version
id: version
run: |
VERSION=$(node -p "require('./package.json').version")
BUILD_VERSION="${VERSION}.${GITHUB_RUN_NUMBER}"
echo "build_version=${BUILD_VERSION}" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
@ -36,5 +43,5 @@ jobs:
NODE_ENV=production
tags: |
dcr.behzadan.com/reza/wireguard-3proxy:latest
dcr.behzadan.com/reza/wireguard-3proxy:${{ gitea.ref_name }}
dcr.behzadan.com/reza/wireguard-3proxy:${{ steps.version.outputs.BUILD_VERSION }}

View File

@ -1,7 +1,8 @@
name: Build and Publish Docker Image (Multi-Arch)
on:
workflow_dispatch:
release:
types: [published]
env:
IMAGE_NAME: rbehzadan/wireguard-3proxy

View File

@ -1,44 +0,0 @@
name: Build and Publish Docker Image (Multi-Arch)
on:
release:
types: [published]
env:
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/wireguard-3proxy
IMAGE_TAG: ${{ github.event.release.tag_name }}
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
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
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ env.IMAGE_NAME }}:latest
${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}