Skip to content

Merge pull request #133 from tableflowhq/feature/oncomplete-refactor #2

Merge pull request #133 from tableflowhq/feature/oncomplete-refactor

Merge pull request #133 from tableflowhq/feature/oncomplete-refactor #2

Workflow file for this run

name: ci
on:
push:
tags:
- "*"
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image: tableflow/admin-server
dockerfile: admin-server/Dockerfile
subdir: admin-server
- image: tableflow/admin-ui
dockerfile: admin-ui/Dockerfile
subdir: admin-ui
- image: tableflow/importer-ui
dockerfile: importer-ui/Dockerfile
subdir: importer-ui
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: ${{matrix.image}}
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
# type=semver,pattern={{major}}.{{minor}}
# type=semver,pattern={{major}}
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER_NAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ${{matrix.subdir}}
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}