Skip to content

fix(ci): add workflow_dispatch to helm and missing token/context (#4) #4

fix(ci): add workflow_dispatch to helm and missing token/context (#4)

fix(ci): add workflow_dispatch to helm and missing token/context (#4) #4

name: "Container: Image Build"
on:
workflow_dispatch: {}
push:
branches:
- main
paths:
- "Docker/**/*"
env:
UPSTREAM_TS_VERSION: v1.68.0
jobs:
publish-images:
name: Publish Image
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb
- name: Log into registry ghcr.io
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
with:
push: true
context: ./
file: ./Docker/Dockerfile
build-args: |
VERSION=${{ env.UPSTREAM_TS_VERSION }}
tags: |
ghcr.io/${{ github.repository }}:${{ env.UPSTREAM_TS_VERSION }}