2023-02-20 16:40:05 -07:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-04-15 12:35:15 -06:00
|
|
|
branches: [ "*" ]
|
2023-02-20 16:40:05 -07:00
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
# Build Docker image with Buildx
|
|
|
|
# https://github.com/docker/build-push-action
|
|
|
|
- name: Build and push
|
|
|
|
id: build-and-push
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
2023-02-26 16:20:27 -07:00
|
|
|
context: ./docker
|
2023-02-20 16:40:05 -07:00
|
|
|
push: false
|
|
|
|
file: docker/Dockerfile
|
|
|
|
cache-from: type=gha
|
|
|
|
cache-to: type=gha,mode=max
|
2023-04-15 14:39:51 -06:00
|
|
|
build-args: CACHEBUST=$(date +%s)
|