2023-07-04 11:46:49 +00:00
|
|
|
name: Docker
|
|
|
|
|
2023-03-08 11:45:55 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-07-04 11:46:49 +00:00
|
|
|
- master
|
2023-03-08 11:45:55 +00:00
|
|
|
tags:
|
2023-08-17 03:04:50 +00:00
|
|
|
- 'v*.*.*'
|
2023-07-04 11:46:49 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**/*.md'
|
|
|
|
- '.gitignore'
|
|
|
|
- '.github/**'
|
|
|
|
- '!.github/workflows/docker.yml'
|
2023-08-17 03:04:50 +00:00
|
|
|
- '!.github/workflows/docker-reusable.yml'
|
2023-07-04 11:46:49 +00:00
|
|
|
- 'docker/**'
|
|
|
|
- '!docker/codex.Dockerfile'
|
|
|
|
- '!docker/docker-entrypoint.sh'
|
2023-04-18 12:17:24 +00:00
|
|
|
workflow_dispatch:
|
2023-03-08 11:45:55 +00:00
|
|
|
|
2023-07-04 11:46:49 +00:00
|
|
|
|
2023-03-08 11:45:55 +00:00
|
|
|
jobs:
|
2023-08-17 03:04:50 +00:00
|
|
|
build-and-push:
|
|
|
|
name: Build and Push
|
|
|
|
uses: ./.github/workflows/docker-reusable.yml
|
2023-08-30 10:09:52 +00:00
|
|
|
with:
|
|
|
|
tag_latest: ${{ github.ref_name == github.event.repository.default_branch || startsWith(github.ref, 'refs/tags/') }}
|
2023-08-17 03:04:50 +00:00
|
|
|
secrets: inherit
|