Skip to content

Update caddy Docker tag to v2.9.1 #18

Update caddy Docker tag to v2.9.1

Update caddy Docker tag to v2.9.1 #18

Workflow file for this run

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