Skip to content

add discord types for better type hinting #10

add discord types for better type hinting

add discord types for better type hinting #10

name: Docker Build and Publish
on:
push:
branches:
- main
pull_request:
types:
- opened
- edited
- synchronize
workflow_dispatch:
jobs:
build_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# TODO: add docker meta data step for tagging and versioning
- name: Login to Docker registry
if: ${{ github.ref == 'refs/heads/main' }} # skip login if not main
uses: docker/login-action@v3
with:
registry: docker.pieloaf.com
username: ${{ vars.REGISTRY_PIELOAF_USER }}
password: ${{ secrets.REGISTRY_PIELOAF_PASSWD }}
- name: Dockerize and Push Image
uses: docker/build-push-action@v5
with:
push: ${{ github.ref == 'refs/heads/main' }} # only publish if main
platforms: linux/amd64
# TODO: tagged semver releases
tags: docker.pieloaf.com/bsf-server:latest