Skip to content

Merge pull request #18 from whoan/test-custom-cache-image-name #171

Merge pull request #18 from whoan/test-custom-cache-image-name

Merge pull request #18 from whoan/test-custom-cache-image-name #171

Workflow file for this run

name: docker-compose
on: [push]
jobs:
build-compose:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: whoan/docker-build-with-cache-action@next
with:
username: whoan
password: "${{ secrets.DOCKER_HUB_PASSWORD }}"
compose_file: docker-compose.yml > docker-compose.override.yml
- uses: whoan/docker-build-with-cache-action@next
with:
username: whoan
password: "${{ secrets.GITHUB_TOKEN }}"
registry: ghcr.io
compose_file: docker-compose.yml
- name: Service regex (Docker Hub)
uses: whoan/docker-build-with-cache-action@next
with:
username: whoan
password: "${{ secrets.DOCKER_HUB_PASSWORD }}"
compose_file: docker-compose.yml > docker-compose.override.yml
services_regex: '(dh.*|gh_some)'
- name: Service regex (GitHub Registry)
uses: whoan/docker-build-with-cache-action@next
with:
username: whoan
password: "${{ secrets.GITHUB_TOKEN }}"
registry: ghcr.io
compose_file: docker-compose.yml
services_regex: '(dh.*|gh_some)'
build-compose-2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: whoan/docker-build-with-cache-action@next
with:
username: whoan
password: "${{ secrets.DOCKER_HUB_PASSWORD }}"
context: foo
compose_file: foo/docker-compose.yml