Skip to content

feat: added auditable decision gate #13

feat: added auditable decision gate

feat: added auditable decision gate #13

Workflow file for this run

name: Container
on:
push:
branches:
- main
tags:
- "v*"
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
shell: bash
run: |
image="ghcr.io/${GITHUB_REPOSITORY,,}"
if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
tag="${GITHUB_REF_NAME#v}"
else
tag="latest"
fi
docker build -t "${image}:${tag}" .
docker push "${image}:${tag}"