Skip to content

feat: enhance Dokku plugin management and update configuration variables #3

feat: enhance Dokku plugin management and update configuration variables

feat: enhance Dokku plugin management and update configuration variables #3

Workflow file for this run

name: build-image
on:
push:
branches: [main]
workflow_dispatch: {}
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
outputs:
image: ${{ steps.meta.outputs.image }}
tag: ${{ steps.meta.outputs.tag }}
steps:
- uses: actions/checkout@v4
- name: Compute image metadata
id: meta
run: |
IMAGE="ghcr.io/${GITHUB_REPOSITORY}/app"
TAG="${GITHUB_SHA}"
echo "image=${IMAGE}" >> "$GITHUB_OUTPUT"
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ steps.meta.outputs.image }}:${{ steps.meta.outputs.tag }}
${{ steps.meta.outputs.image }}:latest