forked from v2rayA/v2rayA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
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
Markson Hon
committed
Nov 12, 2023
1 parent
61ec0c9
commit 7e779a6
Showing
1 changed file
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|