Skip to content

v0.1.25.8 bug fixes, admin spec 0.1.25.8 compliance #11

v0.1.25.8 bug fixes, admin spec 0.1.25.8 compliance

v0.1.25.8 bug fixes, admin spec 0.1.25.8 compliance #11

Workflow file for this run

name: Build and Push Docker Image
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Extract version from POM
id: version
run: |
VERSION=$(sed -n 's/.*<revision>\(.*\)<\/revision>.*/\1/p' cycles-admin-service/pom.xml | tr -d ' ')
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "Detected version: $VERSION"
- name: Log in to GHCR
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
push: true
tags: |
ghcr.io/runcycles/cycles-server-admin:${{ steps.version.outputs.version }}
ghcr.io/runcycles/cycles-server-admin:latest
build-args: |
APP_VERSION=${{ steps.version.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max