mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
Fix build action yaml
This commit is contained in:
parent
7ef9e4dcb6
commit
9747bc04f0
7
.github/workflows/build.yaml
vendored
7
.github/workflows/build.yaml
vendored
@ -16,6 +16,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
DOCKER_REPO: shenxn/protonmail-bridge
|
DOCKER_REPO: shenxn/protonmail-bridge
|
||||||
DOCKER_REPO_DEV: ghcr.io/shenxn/protonmail-bridge-dev
|
DOCKER_REPO_DEV: ghcr.io/shenxn/protonmail-bridge-dev
|
||||||
|
PLATFORMS: linux/amd64,linux/arm64/v8
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -45,12 +46,12 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
with:
|
with:
|
||||||
driver-opts: network=host
|
driver-opts: network=host
|
||||||
- name: Build image without push to DockerHub
|
- name: Build image without push to registry
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./build
|
context: ./build
|
||||||
file: ./build/Dockerfile
|
file: ./build/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: localhost:5000/protonmail-bridge:latest
|
tags: localhost:5000/protonmail-bridge:latest
|
||||||
- name: Scan image
|
- name: Scan image
|
||||||
@ -83,7 +84,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: ./build
|
context: ./build
|
||||||
file: ./build/Dockerfile
|
file: ./build/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64/v8
|
platforms: ${{ env.PLATFORMS }}
|
||||||
tags: |
|
tags: |
|
||||||
${{ steps.repo.outputs.repo }}:build
|
${{ steps.repo.outputs.repo }}:build
|
||||||
${{ steps.repo.outputs.repo }}:${{ steps.version.outputs.version }}-build
|
${{ steps.repo.outputs.repo }}:${{ steps.version.outputs.version }}-build
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user