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
|
- 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"
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user