mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
ref https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/ and https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
35 lines
865 B
YAML
35 lines
865 B
YAML
name: v2raya_gui-docker
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Build production image
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
file: Dockerfile.gui
|
|
platforms: linux/arm,linux/arm64,linux/amd64
|
|
push: true
|
|
tags: mzz2017/v2raya-gui:latest
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|