Compare commits

...

6 Commits
v1.1.3 ... main

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
4 changed files with 92 additions and 10 deletions

View File

@ -11,13 +11,6 @@ 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
@ -43,5 +36,5 @@ jobs:
NODE_ENV=production
tags: |
dcr.behzadan.com/reza/wireguard-3proxy:latest
dcr.behzadan.com/reza/wireguard-3proxy:${{ steps.version.outputs.BUILD_VERSION }}
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

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

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 }}