Skip to content

document test data

document test data #34

Workflow file for this run

name: Create and publish a Docker image
on:
push:
branches: ["main"]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v1.14.1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v2.10.0
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/vseth-geco/radius:${{ env.SHORT_SHA }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate GitHub App Token
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.GECO_DEPLOYMENT_APP_ID }}
private-key: ${{ secrets.GECO_DEPLOYMENT_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: |
k8s
- name: Update k8s repo
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.app-token.outputs.token }}
repository: VSETH-GECO/k8s
event-type: radius
client-payload: |
{
"tag": "${{ env.SHORT_SHA }}"
}