Skip to content

Commit

Permalink
find speed elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelchcki committed Jan 31, 2022
1 parent 58294f6 commit d493d42
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/bake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ name: build
on:
push: {}

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
-
name: Checkout
Expand All @@ -15,17 +22,22 @@ jobs:
uses: docker/setup-buildx-action@v1
with:
config: .github/buildkitd.toml
-
name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build
uses: docker/bake-action@v1
with:
# files: |
# ./docker-bake.hcl
targets: package
-
name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: buildx
path: build/package
if-no-files-found: error
with:
targets: package-github
# -
# name: Upload artifacts
# uses: actions/upload-artifact@v2
# with:
# name: buildx
# path: build/package
# if-no-files-found: error
8 changes: 8 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ target "package-circleci" {
output = ["build/package"]
}

target "package-github" {
dockerfile = "dockerfiles/packaging/Dockerfile"
target = "export"
cache-from = ["type=registry,ref=ghcr.io/pawelchcki/dd-trace-php"]
cache-to = ["type=registry,ref=ghcr.io/pawelchcki/dd-trace-php"]
output = ["build/package"]
}


target "extensions" {
inherits = ["package"]
Expand Down

0 comments on commit d493d42

Please sign in to comment.