Skip to content

Add Markdown formatting to code blocks #17

Add Markdown formatting to code blocks

Add Markdown formatting to code blocks #17

Workflow file for this run

name: Build and Push Docker Image
on:
release:
types: [published]
workflow_dispatch:
pull_request:
env:
REGISTRY: ghcr.io
IMAGE_NAME: jordan-dalby/bytestash
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
if: github.event_name == 'release' && github.event.action == 'published'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name || github.sha }}