|
@ -1,4 +1,4 @@ |
|
|
name: Build & Publish Docker Image to Docker Hub |
|
|
name: Build & Publish Docker Image to GitHub Container Registry |
|
|
|
|
|
|
|
|
on: |
|
|
on: |
|
|
workflow_dispatch: |
|
|
workflow_dispatch: |
|
@ -20,11 +20,12 @@ jobs: |
|
|
- name: Set up Docker Buildx |
|
|
- name: Set up Docker Buildx |
|
|
uses: docker/setup-buildx-action@v1 |
|
|
uses: docker/setup-buildx-action@v1 |
|
|
|
|
|
|
|
|
- name: Login to DockerHub |
|
|
- name: Login to GitHub Container Registry |
|
|
uses: docker/login-action@v1 |
|
|
uses: docker/login-action@v2 |
|
|
with: |
|
|
with: |
|
|
username: ${{ secrets.DOCKER_USERNAME }} |
|
|
registry: ghcr.io |
|
|
password: ${{ secrets.DOCKER_PASSWORD }} |
|
|
username: ${{ github.actor }} |
|
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
|
|
|
# Set environment variables |
|
|
# 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 |
|
@ -35,4 +36,4 @@ jobs: |
|
|
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:nightly, weejewel/wg-easy:${{ env.RELEASE }}-nightly |
|
|
tags: ghcr.io/${{ github.repository }}:nightly, ghcr.io/${{ github.repository }}:${{ env.RELEASE }}-nightly |
|
|