diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index 53d6f82..3d56840 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -13,7 +13,7 @@ jobs: uses: traberph/ci/.gitea/workflows/image.yaml@main with: project: public - image: interval_viz + image: interval-viz push: ${{ github.event_name != 'pull_request' }} secrets: registry-username: ${{ secrets.REGISTRY_USERNAME }} diff --git a/README.md b/README.md index b032e89..31d6723 100644 --- a/README.md +++ b/README.md @@ -60,8 +60,8 @@ Only the `state` and `last_changed` columns are used; column order doesn't matte ## Container ```sh -docker build -t interval_viz . -docker run -p 8080:80 -e BASIC_AUTH_USER=admin -e BASIC_AUTH_PASSWORD='…' interval_viz +docker build -t interval-viz . +docker run -p 8080:80 -e BASIC_AUTH_USER=admin -e BASIC_AUTH_PASSWORD='…' interval-viz ``` | Variable | Meaning | @@ -94,7 +94,7 @@ credentials are set in `docker-compose.yml`. The host port can be changed with `.gitea/workflows/docker.yml` builds the image (`linux/amd64`, `linux/arm64`) with the shared [`traberph/ci`](https://git.traberph.de/traberph/ci) image workflow and pushes it -to the Harbor registry as `registry.traberph.de/public/interval_viz`. +to the Harbor registry as `registry.traberph.de/public/interval-viz`. | Trigger | Tags pushed | |--------------------|------------------------------------------------------| @@ -107,7 +107,7 @@ The timestamp tags sort by build time. Flux image automation picks the newest on this filter: `pattern: '^(?P[0-9]{14})-[a-f0-9]{7}$'`, `extract: '$ts'`, `numerical: asc`. With the `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` secrets set, the same tags are also -pushed to `docker.io//interval_viz`. +pushed to `docker.io//interval-viz`. Old tags are cleaned up by a tag retention policy in Harbor, not by this workflow. diff --git a/docker-compose.yml b/docker-compose.yml index 2c818dd..58284e3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,9 @@ -name: interval_viz +name: interval-viz services: - interval_viz: + interval-viz: build: . - image: registry.traberph.de/public/interval_viz:latest + image: registry.traberph.de/public/interval-viz:latest restart: unless-stopped ports: - "${INTERVAL_VIZ_PORT:-8080}:80"