diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 0897df8..d918633 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -7,10 +7,10 @@ Contributions to this project are [released](https://help.github.com/articles/gi ## Submitting a pull request 1. [Fork](https://github.com/crazy-max/ghaction-docker-buildx-bake/fork) and clone the repository -2. Configure and install the dependencies locally: `yarn install` -3. Make sure the tests pass on your machine: `yarn run test` -4. Create a new branch: `git checkout -b my-branch-name` -5. Make your changes, add tests, and make sure the tests still pass +2. Configure and install the dependencies: `yarn install` +3. Create a new branch: `git checkout -b my-branch-name` +4. Make your changes +5. Make sure the tests pass: `docker buildx bake test` 6. Format code and build javascript artifacts: `docker buildx bake pre-checkin` 7. Validate all code has correctly formatted and built: `docker buildx bake validate` 8. Push to your fork and [submit a pull request](https://github.com/crazy-max/ghaction-docker-buildx-bake/compare) diff --git a/README.md b/README.md index 3daf810..fe20092 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ on: push: branches: master tags: + jobs: bake: runs-on: ubuntu-latest @@ -43,7 +44,6 @@ jobs: uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx - id: buildx uses: docker/setup-buildx-action@v1 - name: Login to DockerHub @@ -55,13 +55,11 @@ jobs: name: Build and push uses: crazy-max/ghaction-docker-buildx-bake@v1 with: - builder: ${{ steps.buildx.outputs.name }} - push: true files: | ./config.hcl targets: | - default release + push: true ``` ## Customizing diff --git a/dist/index.js b/dist/index.js index 9e8b758..2b73f1c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -535,9 +535,11 @@ function run() { const buildxVersion = yield buildx.getVersion(); core.info(`📣 Buildx version: ${buildxVersion}`); let inputs = yield context.getInputs(); - core.info(`🏃 Starting bake...`); + core.startGroup(`🏃 Starting bake...`); const args = yield context.getArgs(inputs, buildxVersion); + yield exec.exec('docker', [...args, '--print']); yield exec.exec('docker', args); + core.endGroup(); } catch (error) { core.setFailed(error.message); diff --git a/src/main.ts b/src/main.ts index 2da0943..12afd49 100644 --- a/src/main.ts +++ b/src/main.ts @@ -21,9 +21,11 @@ async function run(): Promise { let inputs: context.Inputs = await context.getInputs(); - core.info(`🏃 Starting bake...`); + core.startGroup(`🏃 Starting bake...`); const args: string[] = await context.getArgs(inputs, buildxVersion); + await exec.exec('docker', [...args, '--print']); await exec.exec('docker', args); + core.endGroup(); } catch (error) { core.setFailed(error.message); }