mirror of https://github.com/wg-easy/wg-easy
committed by
GitHub
1 changed files with 46 additions and 0 deletions
@ -0,0 +1,46 @@ |
|||
name: Build/Publish Stable Image to DockerHub |
|||
|
|||
on: |
|||
workflow_dispatch: |
|||
push: |
|||
branches: |
|||
- testing |
|||
- testing/** |
|||
- staging |
|||
- staging/** |
|||
- production |
|||
- production/** |
|||
schedule: |
|||
- cron: "0 0 * * 1" |
|||
|
|||
jobs: |
|||
deploy: |
|||
name: Build & Deploy |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- uses: actions/checkout@v2 |
|||
with: |
|||
ref: production |
|||
|
|||
- 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 }} |
|||
|
|||
# Set environment variables |
|||
- run: echo RELEASE=$(cat ./src/package.json | jq -r .release) >> $GITHUB_ENV |
|||
|
|||
# Build & Publish |
|||
- name: Build & Publish Docker Image |
|||
uses: docker/build-push-action@v2 |
|||
with: |
|||
push: true |
|||
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8 |
|||
tags: weejewel/wg-easy:stable |
|||
Loading…
Reference in new issue