28 lines
739 B
YAML
28 lines
739 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: sh
|
|
steps:
|
|
-
|
|
name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: code.hohl.cloud
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
tags: code.hohl.cloud/jwa11y/a11yist:latest
|
|
cache-from: type=registry,ref=code.hohl.cloud/jwa11y/a11yist:latest
|
|
cache-to: type=inline
|
|
- run: docker compose -f /services/a11yist/docker-compose.yml up -d
|