Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade of buildx #44

Merged
merged 20 commits into from
May 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2fdaa64
Upgrade of buildx
skabashnyuk May 20, 2020
3d57ff5
fixup! Upgrade of buildx
skabashnyuk May 20, 2020
1536c3a
Added auth
skabashnyuk May 21, 2020
89754f1
fixup! Added auth
skabashnyuk May 21, 2020
f80e94c
fixup! fixup! Added auth
skabashnyuk May 21, 2020
cc96291
fixup! fixup! fixup! Added auth
skabashnyuk May 21, 2020
959791f
fixup! fixup! fixup! fixup! Added auth
skabashnyuk May 21, 2020
1e3a3ec
fixup! fixup! fixup! fixup! fixup! Added auth
skabashnyuk May 21, 2020
59b9488
fixup! fixup! fixup! fixup! fixup! fixup! Added auth
skabashnyuk May 21, 2020
844e730
fixup! fixup! fixup! fixup! fixup! fixup! fixup! Added auth
skabashnyuk May 21, 2020
9a277e4
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Added auth
skabashnyuk May 21, 2020
338ab1b
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Added …
skabashnyuk May 21, 2020
a666f35
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
skabashnyuk May 21, 2020
5b93dbe
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
skabashnyuk May 21, 2020
6b5c50b
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
skabashnyuk May 21, 2020
15f2da1
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
skabashnyuk May 21, 2020
489712c
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
skabashnyuk May 21, 2020
70fc3f3
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
skabashnyuk May 22, 2020
490db3b
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
skabashnyuk May 22, 2020
fa3bbb2
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
skabashnyuk May 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,30 @@ on:
- master
jobs:
docker-build:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
strategy:
fail-fast: false
env:
IMAGE_FULL: quay.io/eclipse/che-dashboard:next
CACHE_IMAGE_FULL: docker.io/cheincubator/che-dashboard:cache
steps:
- uses: actions/checkout@v2
name: Checkout che-dashboard source code
- name: Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v1.4.0
uses: crazy-max/ghaction-docker-buildx@v1.6.2
with:
version: v0.3.1
buildx-version: v0.4.1
- name: "Docker prepare"
run: docker image prune -a -f
- name: "Docker Quay.io Login"
run: docker login -u "${{ secrets.QUAY_USERNAME }}" -p "${{ secrets.QUAY_PASSWORD }}" quay.io
- name: "Docker docker.io Login"
run: docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" -p "${{ secrets.DOCKERHUB_PASSWORD }}" docker.io
- name: "Docker build"
run: docker buildx build --platform linux/amd64 --cache-from="type=registry,ref=${CACHE_IMAGE_FULL}" --cache-to="type=registry,ref=${CACHE_IMAGE_FULL},mode=max" -t ${IMAGE_FULL} -f apache.Dockerfile --push .
- name: "Docker build with cache"
uses: nick-invision/retry@v1
with:
timeout_minutes: 20
max_attempts: 5
command: docker buildx build --platform linux/amd64,linux/s390x --cache-from="type=registry,ref=${CACHE_IMAGE_FULL}" --cache-to="type=registry,ref=${CACHE_IMAGE_FULL},mode=max" -t ${IMAGE_FULL} -f apache.Dockerfile --push .
- name: "Docker Logout"
run: docker logout
16 changes: 11 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,24 @@ on:
branches: [ master ]
jobs:
docker-build:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
strategy:
fail-fast: false
env:
IMAGE_FULL: quay.io/eclipse/che-dashboard:next
CACHE_IMAGE_FULL: docker.io/cheincubator/che-dashboard:cache
steps:
- uses: actions/checkout@v2
name: Checkout che-dashboard source code
- name: Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v1.4.0
uses: crazy-max/ghaction-docker-buildx@v1.6.2
with:
version: v0.3.1
buildx-version: v0.4.1
- name: "Docker prepare"
run: docker image prune -a -f
- name: "Docker build"
run: docker buildx build --platform linux/amd64 -t ${IMAGE_FULL} -f apache.Dockerfile .
- name: "Docker build with cache"
uses: nick-invision/retry@v1
with:
timeout_minutes: 100
max_attempts: 5
command: docker buildx build --platform linux/amd64 --cache-from="type=registry,ref=${CACHE_IMAGE_FULL}" -t ${IMAGE_FULL} -f apache.Dockerfile .