Skip to content

Allow casual profanity exceptions #24

Allow casual profanity exceptions

Allow casual profanity exceptions #24

name: Deploy to JustRunMy.App
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Log in to JustRunMy.App registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.JUSTRUNMY_REGISTRY }}
username: ${{ secrets.JUSTRUNMY_REGISTRY_USERNAME }}
password: ${{ secrets.JUSTRUNMY_REGISTRY_PASSWORD }}
- name: Resolve v2 image tag
id: image
shell: bash
run: |
image="${{ secrets.JUSTRUNMY_IMAGE }}"
if [ -z "$image" ]; then
echo "JUSTRUNMY_IMAGE secret is missing"
exit 1
fi
image="${image//v1_autodeploy/v2_autodeploy}"
image="${image/:v1_/:v2_}"
image="${image/%:v1/:v2}"
echo "tag=$image" >> "$GITHUB_OUTPUT"
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.image.outputs.tag }}