Skip to content

make the bouncer read env vars #42

make the bouncer read env vars

make the bouncer read env vars #42

Workflow file for this run

name: Create and publish a Docker image
on:
push:
branches: ['master']
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/[email protected]
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/[email protected]
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/vseth-geco/bouncer:${{ env.SHORT_SHA }}
labels: ${{ steps.meta.outputs.labels }}
- name: Update k8s repo
uses: mvasigh/[email protected]
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
repo: k8s
owner: VSETH-GECO
event_type: bouncer
message: |
{
"tag": "${{ env.SHORT_SHA }}"
}