Skip to content

Workflow file for this run

on:
push:
# branches:
# - main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ghcr.io/akdasa-studios/lectorium-gateway
IMAGE_TAG: ${{ github.sha }}
jobs:
build-gateway:
name: Build Gateway
runs-on: ubuntu-latest
environment: Staging
permissions:
contents: read
packages: write
steps:
- name: Find Latest Draft Release
id: find-release
run: |
# Fetch releases using GitHub API
response=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/releases)
# Parse the response to find the latest draft release
latest_draft=$(echo "$response" | jq -r '.[] | select(.draft == true) | .tag_name' | head -n 1)
echo "Latest draft release: $latest_draft"
echo "::set-output name=latest_draft::$latest_draft"
- name: Output Latest Draft Release
run: echo "The latest draft release is: ${{ steps.find-release.outputs.latest_draft }}"

Check failure on line 36 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 36
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ./modules/services/gateway
push: true
tags: |
ghcr.io/akdasa-studios/lectorium-gateway:${{ steps.last_release.outputs.tag_name }}-rc
# build-database:
# name: Build Database
# runs-on: ubuntu-latest
# environment: Staging
# permissions:
# contents: read
# packages: write
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# submodules: true
# - name: Setup Docker buildx
# uses: docker/setup-buildx-action@v2
# - name: Log into registry ${{ env.REGISTRY }}
# uses: docker/login-action@v2
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build and push Docker image
# uses: docker/build-push-action@v4
# with:
# context: ./modules/services/database/modules/database
# push: true
# tags: |
# ghcr.io/akdasa-studios/lectorium-database:staging
# build-database-bootstrap:
# name: Build Database Bootstrap
# runs-on: ubuntu-latest
# environment: Staging
# permissions:
# contents: read
# packages: write
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# submodules: true
# - name: Setup Docker buildx
# uses: docker/setup-buildx-action@v2
# - name: Log into registry ${{ env.REGISTRY }}
# uses: docker/login-action@v2
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build and push Docker image
# uses: docker/build-push-action@v4
# with:
# context: ./modules/services/database/modules/bootstrap
# push: true
# tags: |
# ghcr.io/akdasa-studios/lectorium-database-bootstrap:staging