forked from fscarmen2/Argo-Xray-PaaS
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 921 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: "Build and push images"
on:
workflow_dispatch:
jobs:
Building:
runs-on: ubuntu-latest
name: "Build Xray images"
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKERHUB_REPOSITORY: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1.6.0
- name: Login to DockerHub
uses: docker/login-action@v1.14.1
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
- name: Build and push images to Docker hub
uses: docker/build-push-action@v2.9.0
with:
push: true
platforms: linux/amd64
tags: ${{ env.DOCKERHUB_REPOSITORY }}