mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-11-14 06:29:23 +08:00
wip
This commit is contained in:
parent
ba8c18ceaf
commit
fb56bb94ac
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
@ -1,11 +1,10 @@
|
|||||||
name: Build & Publish Docker Image to Docker Hub
|
name: Build & Publish Docker Image to GitHub Container Registry
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- production
|
- production
|
||||||
- production/**
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -29,13 +28,12 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# Set environment variables
|
- name: Set environment variables
|
||||||
- run: echo RELEASE=$(cat ./src/package.json | jq -r .release) >> $GITHUB_ENV
|
run: echo RELEASE=$(cat ./src/package.json | jq -r .release) >> $GITHUB_ENV
|
||||||
|
|
||||||
# Build & Publish
|
|
||||||
- name: Build & Publish Docker Image
|
- name: Build & Publish Docker Image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
|
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
|
||||||
tags: weejewel/wg-easy:latest, weejewel/wg-easy:${{ env.RELEASE }}
|
tags: wg-easy/wg-easy:latest, wg-easy/wg-easy:${{ env.RELEASE }}
|
||||||
|
Loading…
Reference in New Issue
Block a user