Skip to content

Fix another typo

Fix another typo #103

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
env:
APPUIO_PROJECT_NAME: vshn-docs
IMAGE_NAME: appcat-user-docs
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
jobs:
build:
name: Build Antora Site 🏗️
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Antora Site
id: build_site
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}-site
tags: latest
containerfiles: |
./deployment/main/Containerfile
oci: true
- name: Build Antora Search Index
id: build_search
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}-search
tags: latest
containerfiles: |
./deployment/search/Containerfile
oci: true
- name: Push Antora Site Image
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build_site.outputs.image }}
tags: ${{ steps.build_site.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
- name: Push Search Image
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build_search.outputs.image }}
tags: ${{ steps.build_search.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
deploy:
name: Deploy Antora Site 🚀
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Install OpenShift CLI tools
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "latest"
- name: Authenticate and set context
uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
namespace: ${{ env.APPUIO_PROJECT_NAME }}
- name: Apply Manifests
run: |
sed -i "s#SITEIMAGE#ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}-site:latest#" deployment/deployment.yaml
sed -i "s#SEARCHIMAGE#ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}-search:latest#" deployment/deployment.yaml
sed -i "s#GITSHAFULL#$GITHUB_SHA#" deployment/deployment.yaml
oc apply -f deployment/