general: remove failing docker image build tasks for PRs
This commit is contained in:
parent
d029d6684c
commit
06796f546e
@ -4,14 +4,6 @@ workflows:
|
|||||||
docker:
|
docker:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- build
|
||||||
- docker-frontend:
|
|
||||||
context:
|
|
||||||
- docker
|
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
ignore: master
|
|
||||||
- docker-frontend-deploy:
|
- docker-frontend-deploy:
|
||||||
context:
|
context:
|
||||||
- docker
|
- docker
|
||||||
@ -20,14 +12,6 @@ workflows:
|
|||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: master
|
only: master
|
||||||
- docker-proxy:
|
|
||||||
context:
|
|
||||||
- docker
|
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
ignore: master
|
|
||||||
- docker-proxy-deploy:
|
- docker-proxy-deploy:
|
||||||
context:
|
context:
|
||||||
- docker
|
- docker
|
||||||
@ -59,43 +43,6 @@ jobs:
|
|||||||
go get -v -t -d ./...
|
go get -v -t -d ./...
|
||||||
go test -v ./...
|
go test -v ./...
|
||||||
|
|
||||||
docker-frontend:
|
|
||||||
machine:
|
|
||||||
image: ubuntu-2004:202111-02
|
|
||||||
environment:
|
|
||||||
BUILDX_PLATFORMS: linux/amd64,linux/arm64,linux/386,linux/arm/v7
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run:
|
|
||||||
name: Install buildx
|
|
||||||
command: |
|
|
||||||
BUILDX_BINARY_URL="https://github.com/docker/buildx/releases/download/v0.7.1/buildx-v0.7.1.linux-amd64"
|
|
||||||
|
|
||||||
curl --output docker-buildx \
|
|
||||||
--silent --show-error --location --fail --retry 3 \
|
|
||||||
"$BUILDX_BINARY_URL"
|
|
||||||
|
|
||||||
mkdir -p ~/.docker/cli-plugins
|
|
||||||
|
|
||||||
mv docker-buildx ~/.docker/cli-plugins/
|
|
||||||
chmod a+x ~/.docker/cli-plugins/docker-buildx
|
|
||||||
|
|
||||||
docker buildx install
|
|
||||||
# Run binfmt
|
|
||||||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
||||||
- run:
|
|
||||||
name: Build Docker image
|
|
||||||
environment:
|
|
||||||
BUILD_ID: << pipeline.number >>
|
|
||||||
command: |
|
|
||||||
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
|
|
||||||
docker buildx create --name mybuilder --use
|
|
||||||
docker buildx build \
|
|
||||||
--platform $BUILDX_PLATFORMS \
|
|
||||||
-t $DOCKER_USERNAME/bird-lg-go:circleci-build$BUILD_ID \
|
|
||||||
--progress plain \
|
|
||||||
frontend
|
|
||||||
|
|
||||||
docker-frontend-deploy:
|
docker-frontend-deploy:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:202111-02
|
image: ubuntu-2004:202111-02
|
||||||
@ -138,43 +85,6 @@ jobs:
|
|||||||
--progress plain \
|
--progress plain \
|
||||||
--push frontend
|
--push frontend
|
||||||
|
|
||||||
docker-proxy:
|
|
||||||
machine:
|
|
||||||
image: ubuntu-2004:202111-02
|
|
||||||
environment:
|
|
||||||
BUILDX_PLATFORMS: linux/amd64,linux/arm64,linux/386,linux/arm/v7
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run:
|
|
||||||
name: Install buildx
|
|
||||||
command: |
|
|
||||||
BUILDX_BINARY_URL="https://github.com/docker/buildx/releases/download/v0.7.1/buildx-v0.7.1.linux-amd64"
|
|
||||||
|
|
||||||
curl --output docker-buildx \
|
|
||||||
--silent --show-error --location --fail --retry 3 \
|
|
||||||
"$BUILDX_BINARY_URL"
|
|
||||||
|
|
||||||
mkdir -p ~/.docker/cli-plugins
|
|
||||||
|
|
||||||
mv docker-buildx ~/.docker/cli-plugins/
|
|
||||||
chmod a+x ~/.docker/cli-plugins/docker-buildx
|
|
||||||
|
|
||||||
docker buildx install
|
|
||||||
# Run binfmt
|
|
||||||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
||||||
- run:
|
|
||||||
name: Build Docker image
|
|
||||||
environment:
|
|
||||||
BUILD_ID: << pipeline.number >>
|
|
||||||
command: |
|
|
||||||
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
|
|
||||||
docker buildx create --name mybuilder --use
|
|
||||||
docker buildx build \
|
|
||||||
--platform $BUILDX_PLATFORMS \
|
|
||||||
-t $DOCKER_USERNAME/bird-lgproxy-go:circleci-build$BUILD_ID \
|
|
||||||
--progress plain \
|
|
||||||
proxy
|
|
||||||
|
|
||||||
docker-proxy-deploy:
|
docker-proxy-deploy:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:202111-02
|
image: ubuntu-2004:202111-02
|
||||||
|
Loading…
x
Reference in New Issue
Block a user