Update publish.yml

This commit is contained in:
mihanhunter
2022-03-14 05:59:27 -04:00
committed by GitHub
parent 72f675433c
commit e349e4dbf2

View File

@@ -1,17 +1,30 @@
name: Test and publish to DockerHub
name: ci
on:
workflow_dispatch:
# push:
# branches: [ master ]
# branches:
# - 'main'
jobs:
# test:
# [...]
build:
docker:
runs-on: ubuntu-latest
steps:
- uses: docker/build-push-action@v1
with:
username: sleeplife
password: ${{ secrets.DOCKER_PASSWORD }}
repository: sleeplife/v2ray
tags: latest
-
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.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: sleeplife/v2ray:latest