Skip to content

Merge pull request #8 from hv0905/exact #14

Merge pull request #8 from hv0905/exact

Merge pull request #8 from hv0905/exact #14

Workflow file for this run

name: Check & deploy to DockerHub
on:
push:
branches:
- 'master'
jobs:
perform-check:
uses: ./.github/workflows/test_lint.yml
docker:
runs-on: ubuntu-latest
environment: DockerHub
needs:
- perform-check
strategy:
matrix:
configurations:
- dockerfile: "Dockerfile"
tags: |
edgeneko/neko-image-gallery:latest
edgeneko/neko-image-gallery:latest-cuda
- dockerfile: "cpu-only.Dockerfile"
tags: edgeneko/neko-image-gallery:latest-cpu
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
file: ${{ matrix.configurations.dockerfile }}
push: true
tags: ${{ matrix.configurations.tags }}