1
0
ohmyform/.github/workflows/combined-image.yml

54 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2023-12-11 07:33:30 -08:00
name: Combined Image
2022-01-03 04:08:34 -08:00
on:
push:
paths:
- 'ui/**'
- 'api/**'
- 'Dockerfile'
- 'supervisord.conf'
- 'nginx.conf'
- 'docker/**'
- '.github/workflows/**'
2022-01-03 04:08:34 -08:00
branches:
- master
release:
types:
- published
jobs:
build:
name: push OHMYFORM docker image
2022-01-03 04:08:34 -08:00
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
2022-01-03 05:36:47 -08:00
with:
submodules: true
2022-01-03 04:08:34 -08:00
- name: Log in to Docker Hub
uses: docker/login-action@v3
2022-01-03 04:08:34 -08:00
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
2022-01-03 04:08:34 -08:00
with:
images: ohmyform/ohmyform
tags: |
type=raw,value=latest
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}}
- name: Build and push Docker image
2023-12-02 10:34:48 -08:00
uses: docker/build-push-action@v5
2022-01-03 04:08:34 -08:00
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}