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

Composite action #453

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Composite action #453

wants to merge 1 commit into from

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Aug 30, 2021

Fixes #208

Try-out the composite feature which now supports uses: keyword:

  • Set up Buildx and QEMU
  • Cache
  • Metadata
  • Build and push

Usage:

name: ci

on:
  push:
    branches:
      - 'master'

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v2
      -
        name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      -
        name: Build with composite
        uses: docker/build-push-action/composite@v2
        with:
          context: .
          images: |
            user/app
          platforms: linux/amd64,linux/arm64
          push: ${{ github.event_name != 'pull_request' }}

Signed-off-by: CrazyMax crazy-max@users.noreply.github.com

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Composite Docker action
1 participant