ci: add job to convert new todos to issues #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |