Skip to content

ergo/qg-166: по проекту суффикс Workflow заменён на Op #156

ergo/qg-166: по проекту суффикс Workflow заменён на Op

ergo/qg-166: по проекту суффикс Workflow заменён на Op #156

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 -x :e2e-tests:build
- 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/ergonomic-code/trainer-advisor:latest