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