Compare commits

...

10 Commits

Author SHA1 Message Date
35000e3f02 Back to private registry for gitea workflow
All checks were successful
Multi-Arch Build / docker (release) Successful in 6m24s
2025-01-04 18:04:36 -05:00
fb5080e1c8 Update gitea workflow to push images to gitea artifact registry
Some checks failed
Build and Push to Gitea Artifact Registry / docker (release) Failing after 14s
2025-01-04 17:57:29 -05:00
b548de87b2 Two workflows one for ghcr and one for ducker-hub 2025-01-04 12:35:32 -05:00
35d2b5fc38 Add permissions for GITHUB_TOKEN 2025-01-04 12:04:21 -05:00
a3832a3fa7 Update github workflow to use ghcr instead of docker hub 2025-01-04 11:55:31 -05:00
c2681de784 Fix bug in Multi-Arch workflow for gitea
All checks were successful
Multi-Arch Build / docker (release) Successful in 5m52s
2025-01-03 12:16:51 -05:00
86784bfc18 Add Multi-Arch build workflow for gitea
Some checks failed
Multi-Arch Build / docker (release) Failing after 6s
2025-01-03 12:13:07 -05:00
747d976f78 Update gitea workflow for native builds 2025-01-03 12:09:33 -05:00
a8360b2492 Add Multi-Arch build workflow for github 2025-01-03 11:52:26 -05:00
3dce43f0be Try #2 on gitea workflows
All checks were successful
ARM64 Build / docker (push) Successful in 57s
AMD64 Build / docker (push) Successful in 5m14s
2025-01-03 11:35:51 -05:00
8 changed files with 176 additions and 39 deletions

View File

@ -14,7 +14,7 @@ jobs:
- name: Extract version - name: Extract version
id: version id: version
run: echo "VERSION=$(echo ${{ gitea.tag_name }} | sed 's/-amd64//')" >> $GITHUB_OUTPUT run: echo "VERSION=$(echo ${{ gitea.ref_name }} | sed 's/-amd64//')" >> $GITHUB_OUTPUT
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3

View File

@ -14,7 +14,7 @@ jobs:
- name: Extract version - name: Extract version
id: version id: version
run: echo "VERSION=$(echo ${{ gitea.tag_name }} | sed 's/-arm64//')" >> $GITHUB_OUTPUT run: echo "VERSION=$(echo ${{ gitea.ref_name }} | sed 's/-arm64//')" >> $GITHUB_OUTPUT
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3

View File

@ -0,0 +1,40 @@
name: Multi-Arch Build
on:
release:
types: [published]
jobs:
docker:
runs-on: ubuntu-latest
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 Private Registry
uses: docker/login-action@v3
with:
registry: dcr.behzadan.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- 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: |
dcr.behzadan.com/reza/wireguard-3proxy:latest
dcr.behzadan.com/reza/wireguard-3proxy:${{ gitea.ref_name }}

View File

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

@ -3,10 +3,7 @@ name: Generic Build
on: on:
push: push:
tags: tags:
- 'v*' - 'v*-native'
tags-ignore:
- 'v*-arm64'
- 'v*-amd64'
jobs: jobs:
docker: docker:
@ -15,6 +12,10 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Extract version
id: version
run: echo "VERSION=$(echo ${{ gitea.ref_name }} | sed 's/-native//')" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@ -32,4 +33,4 @@ jobs:
push: true push: true
tags: | tags: |
dcr.behzadan.com/reza/wireguard-3proxy:latest 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.VERSION }}

View File

@ -1,32 +0,0 @@
name: Build and Publish Docker Image
on:
release:
types: [published]
env:
IMAGE_NAME: rbehzadan/wireguard-3proxy
IMAGE_TAG: ${{ github.event.release.tag_name }}
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} .
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Push Docker image to Docker Hub
run: |
docker push ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
docker tag ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} ${{ env.IMAGE_NAME }}:latest
docker push ${{ env.IMAGE_NAME }}:latest

38
.github/workflows/docker-hub.yaml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Build and Publish Docker Image (Multi-Arch)
on:
workflow_dispatch:
env:
IMAGE_NAME: rbehzadan/wireguard-3proxy
IMAGE_TAG: ${{ github.event.release.tag_name }}
jobs:
build-and-publish:
runs-on: ubuntu-latest
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 Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- 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 }}

44
.github/workflows/ghcr.yaml vendored Normal file
View File

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