Files
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 8dc8168502 Bump actions/checkout from 3 to 4 (#72)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 08:56:10 -04:00

27 lines
827 B
YAML

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 }}