Skip to content

cached-docker-build-push

Actions
Action for docker build and push with cache
v0.2.0
Latest
Star (2)

Cached docker build push

Execute docker build and push using docker caches.

Github Action

Build and push

- uses: devmasx/[email protected]
  with:
    image_name: devmasx/project-name
    push: true

Build with multiple options

- uses: devmasx/[email protected]
  with:
    image_name: devmasx/project-name-web
    image_tag: ${{ github.sha }}
    file: Dockerfile.web
    cache_stage_target: builder
    build_params: --build-arg=NPM_TOKEN=${{secrets.NPM_TOKEN}}
    push: true

Use your own docker authentication for private repositories Examples:

Azure

- run: az acr login --name myregistry
- uses: devmasx/[email protected]
  with:
    image_name: devmasx/project-name

Google cloud

- run: gcloud auth configure-docker
- uses: devmasx/[email protected]
  with:
    image_name: devmasx/project-name

Docker Hub

- run: |
  docker login -u ${{secrets.DOCKER_USERNAME}} -p ${{secrets.DOCKER_PASSWORD}}
- uses: devmasx/[email protected]
  with:
    image_name: devmasx/project-name

cached-docker-build-push is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Action for docker build and push with cache
v0.2.0
Latest

cached-docker-build-push is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.