Browse Source
Update and rename deploy.yml to deploy-latest.yml
pull/58/head
Fuzzy
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
14 deletions
-
.github/workflows/deploy-latest.yml
|
|
|
@ -4,24 +4,13 @@ on: |
|
|
|
workflow_dispatch: |
|
|
|
push: |
|
|
|
branches: |
|
|
|
- testing |
|
|
|
- testing/** |
|
|
|
- staging |
|
|
|
- staging/** |
|
|
|
- production |
|
|
|
- production/** |
|
|
|
schedule: |
|
|
|
- cron: "0 12 * * *" |
|
|
|
- 'main' |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
@ -32,7 +21,7 @@ jobs: |
|
|
|
uses: docker/login-action@v1 |
|
|
|
with: |
|
|
|
username: ${{ secrets.DOCKER_USERNAME }} |
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }} |
|
|
|
password: ${{ secrets.DOCKER_TOKEN }} |
|
|
|
|
|
|
|
# Set environment variables |
|
|
|
- run: echo RELEASE=$(cat ./src/package.json | jq -r .release) >> $GITHUB_ENV |
|
|
|
@ -43,4 +32,4 @@ jobs: |
|
|
|
with: |
|
|
|
push: true |
|
|
|
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8 |
|
|
|
tags: weejewel/wg-easy:latest, weejewel/wg-easy:${{ env.RELEASE }} |
|
|
|
tags: fuzzymistborn/wg-easy:latest |