Skip to content

call input to set method for evaluating build#1265

Merged
thompson-shaun merged 2 commits intodocker:masterfrom
crazy-max:call-check
Nov 25, 2024
Merged

call input to set method for evaluating build#1265
thompson-shaun merged 2 commits intodocker:masterfrom
crazy-max:call-check

Conversation

@crazy-max
Copy link
Copy Markdown
Member

@crazy-max crazy-max commented Nov 25, 2024

Main case for this input is to be able to validate the build configuration before building using the check call as such:

name: ci

on:
  push:

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
      -
        name: Login to Docker Hub
        uses: docker/login-action@v3
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      -
        name: Validate build configuration
        uses: docker/build-push-action@v6
        with:
          call: check
      -
        name: Build and push
        uses: docker/build-push-action@v6
        with:
          push: true
          tags: user/app:latest

image

@crazy-max

This comment was marked as resolved.

@crazy-max crazy-max force-pushed the call-check branch 2 times, most recently from 16616d6 to f78ddda Compare November 25, 2024 17:26
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants