Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: rewrite stable docker image build 5
Browse files Browse the repository at this point in the history
Markson Hon committed Nov 12, 2023
1 parent 61ec0c9 commit 7e779a6
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
@@ -716,7 +716,7 @@ jobs:
v2raya-aarch64-macos.zip v2raya-aarch64-macos.zip.sha256.txt
Release_to_Docker:
runs-on: ubuntu-22.04
needs: [Build_v2rayA_Binaries]
needs: [GitHub_Release]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
@@ -733,21 +733,7 @@ jobs:
TAG=$(echo $GITHUB_REF | cut -d / -f 3)
IMAGE="mzz2017/v2raya"
echo image=${IMAGE} >> $GITHUB_OUTPUT
- name: Download Artifact Linux x64
uses: actions/download-artifact@v3
with:
name: v2raya_linux_x64_${{ steps.prep.outputs.VERSION }}
path: Downloads
- name: Download Artifact Linux arm64
uses: actions/download-artifact@v3
with:
name: v2raya_linux_arm64_${{ steps.prep.outputs.VERSION }}
path: Downloads
- name: Download Artifact Linux armv7
uses: actions/download-artifact@v3
with:
name: v2raya_linux_armv7_${{ steps.prep.outputs.VERSION }}
path: Downloads
echo tag=${TAG} >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
@@ -757,4 +743,17 @@ jobs:
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/[email protected]
with:
context: .
builder: ${{ steps.buildx.outputs.name }}
file: install/docker/Dockerfile.Action
platforms: linux/arm,linux/arm64,linux/amd64
push: true
tags: |
${{ steps.prep.outputs.image }}:${{ steps.prep.outputs.tag }}
${{ steps.prep.outputs.image }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 7e779a6

Please sign in to comment.