Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [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/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' 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>
28 lines
838 B
YAML
28 lines
838 B
YAML
name: Publish master image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
schedule:
|
|
# Every Sunday, create a new version, to make sure we use an up-to-date base image, etc
|
|
- cron: '0 0 * * 0'
|
|
|
|
jobs:
|
|
publish_image:
|
|
name: Publish master image
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Build
|
|
run: |
|
|
GITHUB_REPOSITORY_LC=$(echo "${GITHUB_REPOSITORY}" | tr [A-Z] [a-z])
|
|
docker build -t docker.pkg.github.com/${GITHUB_REPOSITORY_LC}/master:latest .
|
|
- name: Publish
|
|
run: |
|
|
GITHUB_REPOSITORY_LC=$(echo "${GITHUB_REPOSITORY}" | tr [A-Z] [a-z])
|
|
docker login docker.pkg.github.com -u publisher -p "${GITHUB_TOKEN}"
|
|
docker push docker.pkg.github.com/${GITHUB_REPOSITORY_LC}/master:latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|