Skip to content

adapt image trigger

adapt image trigger #6

Workflow file for this run

name: excalidraw-stack Image
on:
workflow_dispatch:
push:
branches:
- main
env:
IMAGE_BASE_TAG: git.b0t.at/b0t-at/excalidraw-stack
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.registry_uri }}
username: ${{ secrets.registry_username }}
password: ${{ secrets.registry_password }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.IMAGE_BASE_TAG }}:latest