Skip to content

Drop FRONTEND_HOST

Drop FRONTEND_HOST #1

Workflow file for this run

name: OBS container images
on:
push:
branches:
- dockerize
pull_request:
branches:
- dockerize
workflow_dispatch:
jobs:
images:
name: Build and publish images
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
env:
IMAGE_OWNER: ${{ github.repository_owner }}
GITHUB_REPO: ${{ github.repository }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Registry login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Determine image tag
run: |
if [ "$GITHUB_EVENT_NAME" = pull_request ]; then
tag="pr-${GITHUB_REF_NAME%%/*}"
elif [ "$GITHUB_REF_NAME" = dockerize ]; then
tag=latest
else
tag=$GITHUB_REF_NAME
fi
echo "Using image tag \"$tag\""
echo "IMAGE_TAG=$tag" >> "$GITHUB_ENV"
- name: Build images
run: docker compose build
- name: Push images
run: docker compose push