relabel images
This commit is contained in:
8
.github/workflows/ghcr-push.yml
vendored
8
.github/workflows/ghcr-push.yml
vendored
@@ -24,15 +24,15 @@ jobs:
|
||||
|
||||
- name: Set Environment
|
||||
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
|
||||
|
||||
- name: Build
|
||||
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
|
||||
run: |
|
||||
echo '${{secrets.GHCR_TOKEN}}' | docker login ghcr.io -u cwpearson --password-stdin
|
||||
docker push "$SLUG:latest"
|
||||
docker push "$SLUG:$DATE"
|
||||
docker push "$SLUG:0.6.13"
|
||||
docker push "$SLUG:0.6"
|
||||
|
@@ -12,8 +12,8 @@ Inside the container, the working directory is /src, we use the volume mount to
|
||||
## Building the Image Locally
|
||||
|
||||
```bash
|
||||
podman build -f cmake-format-0.6.13.dockerfile -t cmake-format-0.6.13:latest
|
||||
podman run --rm -v "${PWD}"/src cmake-format-0.6.13:latest cmake-format ...
|
||||
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 cmake-format ...
|
||||
```
|
||||
|
||||
## Deploy
|
||||
|
Reference in New Issue
Block a user