relabel images

This commit is contained in:
Carl Pearson
2024-09-30 13:48:27 -06:00
parent 1a6ab6e58f
commit 0f320f9481
2 changed files with 6 additions and 6 deletions

View File

@@ -24,15 +24,15 @@ jobs:
- name: Set Environment - name: Set Environment
run: | run: |
echo "SLUG=ghcr.io/cwpearson/cmake-format-0.6.13" >> $GITHUB_ENV echo "SLUG=ghcr.io/cwpearson/cmake-format" >> $GITHUB_ENV
echo "DATE=$(date +"%Y%m%d")" >> $GITHUB_ENV echo "DATE=$(date +"%Y%m%d")" >> $GITHUB_ENV
- name: Build - name: Build
run: | run: |
docker build -f cmake-format-0.6.13.dockerfile -t "$SLUG:latest" -t "$SLUG:$DATE" . docker build -f cmake-format-0.6.13.dockerfile -t "$SLUG:0.6.13" -t "$SLUG:0.6" .
- name: Publish to GHCR - name: Publish to GHCR
run: | run: |
echo '${{secrets.GHCR_TOKEN}}' | docker login ghcr.io -u cwpearson --password-stdin echo '${{secrets.GHCR_TOKEN}}' | docker login ghcr.io -u cwpearson --password-stdin
docker push "$SLUG:latest" docker push "$SLUG:0.6.13"
docker push "$SLUG:$DATE" docker push "$SLUG:0.6"

View File

@@ -12,8 +12,8 @@ Inside the container, the working directory is /src, we use the volume mount to
## Building the Image Locally ## Building the Image Locally
```bash ```bash
podman build -f cmake-format-0.6.13.dockerfile -t cmake-format-0.6.13:latest podman build -f cmake-format-0.6.13.dockerfile -t cmake-format:0.6.13
podman run --rm -v "${PWD}"/src cmake-format-0.6.13:latest cmake-format ... podman run --rm -v "${PWD}"/src cmake-format:0.6.13 cmake-format ...
``` ```
## Deploy ## Deploy