Skip to content

Add FFI, OTel, and C compiler docs; bump landing to v1.4.0 #12

Add FFI, OTel, and C compiler docs; bump landing to v1.4.0

Add FFI, OTel, and C compiler docs; bump landing to v1.4.0 #12

Workflow file for this run

name: landing
on:
push:
branches: [master]
paths:
- landing/**
- .github/workflows/landing.yml
pull_request:
paths:
- landing/**
- .github/workflows/landing.yml
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/gun-landing
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Read package version
id: pkg
run: echo "version=$(jq -r .version landing/package.json)" >> "$GITHUB_OUTPUT"
- name: Log in to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha,format=short
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=raw,value=v${{ steps.pkg.outputs.version }},enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./landing
file: ./landing/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
deploy:
needs: build-and-push
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up kubectl
uses: azure/setup-kubectl@v4
- name: Write kubeconfig
env:
KUBECONF: ${{ secrets.KUBECONF }}
run: |
mkdir -p "$HOME/.kube"
printf '%s' "$KUBECONF" > "$HOME/.kube/config"
chmod 600 "$HOME/.kube/config"
- name: Apply Argo CD Application
run: kubectl apply -f landing/argocd/application.yaml