Skip to content

[pre-commit.ci] pre-commit autoupdate (#76) #5

[pre-commit.ci] pre-commit autoupdate (#76)

[pre-commit.ci] pre-commit autoupdate (#76) #5

Workflow file for this run

name: Publish stable image
on:
push:
tags:
- '*'
jobs:
publish_image:
name: Publish stable image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
GITHUB_REPOSITORY_LC=$(echo "${GITHUB_REPOSITORY}" | tr [A-Z] [a-z])
TAG=$(echo "${GITHUB_REF}" | sed 's@^refs/tags/@@')
docker build -t docker.pkg.github.com/${GITHUB_REPOSITORY_LC}/stable:${TAG} .
- name: Publish
run: |
GITHUB_REPOSITORY_LC=$(echo "${GITHUB_REPOSITORY}" | tr [A-Z] [a-z])
TAG=$(echo "${GITHUB_REF}" | sed 's@^refs/tags/@@')
docker login docker.pkg.github.com -u publisher -p "${GITHUB_TOKEN}"
docker push docker.pkg.github.com/${GITHUB_REPOSITORY_LC}/stable:${TAG}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}