Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
CD improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed May 8, 2024
1 parent dc68969 commit fff6717
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,12 @@ jobs:
exit 0
fi
- name: Setup Docker BuildX
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/setup-buildx-action@v3

- name: Build and push Docker images (Docker)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v5
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=docker.io
Expand All @@ -165,8 +159,6 @@ jobs:
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=ghcr.io
Expand All @@ -177,7 +169,7 @@ jobs:
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: essentialkaos/docker-info-action@v1
with:
image: ghcr.io/${{github.repository}}:${{matrix.version}}
image: ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}

RubyJemalloc:
name: Ruby+Jemalloc
Expand Down Expand Up @@ -286,18 +278,12 @@ jobs:
exit 0
fi
- name: Setup Docker BuildX
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/setup-buildx-action@v3

- name: Build and push Docker images (Docker)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v5
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=docker.io
Expand All @@ -310,8 +296,6 @@ jobs:
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=ghcr.io
Expand All @@ -322,7 +306,7 @@ jobs:
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: essentialkaos/docker-info-action@v1
with:
image: ghcr.io/${{github.repository}}:${{matrix.version}}-jemalloc
image: ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}-jemalloc

JRuby:
name: JRuby
Expand Down Expand Up @@ -427,18 +411,12 @@ jobs:
exit 0
fi
- name: Setup Docker BuildX
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/setup-buildx-action@v3

- name: Build and push Docker images (Docker)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v5
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=docker.io
Expand All @@ -451,8 +429,6 @@ jobs:
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{steps.metadata.outputs.dockerfile}}
build-args: |
REGISTRY=ghcr.io
Expand All @@ -463,4 +439,4 @@ jobs:
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: essentialkaos/docker-info-action@v1
with:
image: ghcr.io/${{github.repository}}:jruby-${{matrix.version}}
image: ghcr.io/${{env.IMAGE_NAME}}:jruby-${{matrix.version}}

0 comments on commit fff6717

Please sign in to comment.