ci(github-actions): push workspace image to @gitpodify's RHQCR namespace

Also add some timestamped nightly tag for versioning nightly builds.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2023-09-27 16:35:52 +00:00
parent 4a7a5c21e2
commit 844b9b6fb3

View file

@ -68,8 +68,8 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}} type=raw,value=latest,enable={{is_default_branch}}
type=sha,enable=true,priority=100,prefix=commit-,suffix=,format=long type=sha,enable=true,priority=100,prefix=commit-,suffix=,format=long
type=schedule,pattern=nightly type=schedule,pattern=nightly
type=schedule,prefix=nightly-,pattern={{date 'YYYYMMDDhhmmss'}}
type=raw,prefix=branch-,value={{branch}} type=raw,prefix=branch-,value={{branch}}
- uses: hadolint/hadolint-action@v3.1.0 - uses: hadolint/hadolint-action@v3.1.0
with: with:
dockerfile: docker/Dockerfile dockerfile: docker/Dockerfile
@ -126,8 +126,8 @@ jobs:
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
registry: quay.io registry: quay.io
username: ${{ secrets.RHQCR_BOT_USERNAME }} username: ajhalili2006
password: ${{ secrets.RHQCR_BOT_TOKEN }} password: ${{ secrets.RHQCR_PASSWORD }}
# Extract metadata (tags, labels) for Docker # Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action # https://github.com/docker/metadata-action
@ -137,10 +137,12 @@ jobs:
with: with:
images: | images: |
ghcr.io/${{ env.IMAGE_NAME }}/devenv ghcr.io/${{ env.IMAGE_NAME }}/devenv
quay.io/gitpodified-workspace-images/mkdocs-deps
tags: | tags: |
type=raw,value=latest,enable={{is_default_branch}} type=raw,value=latest,enable={{is_default_branch}}
type=sha,enable=true,priority=100,prefix=commit-,suffix=,format=long type=sha,enable=true,priority=100,prefix=commit-,suffix=,format=long
type=schedule,pattern=nightly type=schedule,pattern=nightly
type=schedule,prefix=nightly-,pattern={{date 'YYYYMMDDhhmmss'}}
type=raw,prefix=branch-,value={{branch}} type=raw,prefix=branch-,value={{branch}}
- uses: hadolint/hadolint-action@v3.1.0 - uses: hadolint/hadolint-action@v3.1.0