Update caddy Docker tag to v2.9.1 #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build and push Docker image | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag webdummy:latest | |
- name: Tag the Docker image with the short commit hash | |
run: docker tag webdummy:latest docker.pkg.github.com/daveio/packages/webdummy:$(echo -n ${GITHUB_SHA} | cut -b -7) | |
- name: Tag the Docker image with latest | |
run: docker tag webdummy:latest docker.pkg.github.com/daveio/packages/webdummy:latest | |
- name: Log in to GHPR | |
run: echo ${GHPR_TOKEN} | docker login docker.pkg.github.com --username daveio --password-stdin | |
env: | |
GHPR_TOKEN: ${{ secrets.ghprToken }} | |
- name: Push to GHPR (short commit hash) | |
run: docker push docker.pkg.github.com/daveio/packages/webdummy:$(echo -n ${GITHUB_SHA} | cut -b -7) | |
- name: Push to GHPR (latest) | |
run: docker push docker.pkg.github.com/daveio/packages/webdummy:latest |