Skip to content

qg-171/fix-two-days-appointments (#225) #150

qg-171/fix-two-days-appointments (#225)

qg-171/fix-two-days-appointments (#225) #150

name: Build and publish docker image
on:
push:
branches:
- 'master'
jobs:
build-docker-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
- name: Run build with Gradle Wrapper
run: ./gradlew build -x check
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: '.'
file: deploy/qyoga/Dockerfile
push: true
tags: ghcr.io/d-r-q/qyoga:latest