Skip to content

Push to both ACR and GHCR. - #8

Merged
vegardb merged 2 commits into
mainfrom
7-add-push-to-github-registry
Jun 17, 2026
Merged

Push to both ACR and GHCR.#8
vegardb merged 2 commits into
mainfrom
7-add-push-to-github-registry

Conversation

@havardf

@havardf havardf commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@havardf
havardf requested a review from vegardb June 16, 2026 20:41
@havardf havardf linked an issue Jun 16, 2026 that may be closed by this pull request
Comment thread .github/workflows/build.yml Outdated
env:
IMAGE: fortiregistry.azurecr.io/${{ matrix.service }}:${{ github.run_id }}
ACR_IMAGE: fortiregistry.azurecr.io/${{ matrix.service }}:${{ github.run_id }}
GHCR_IMAGE: ghcr.io/${{ github.repository_owner }}/${{ matrix.service }}:${{ github.run_id }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe qualify the name more? Now, GHCR_IMAGE expands to something like ghcr.io/metno/xmlfrontend:SOME_ID. I think that adding a "forti" here somewhere is needed. For example make something like this: ghcr.io/metno/forti-xmlfrontend:SOME_ID

@havardf havardf Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Should we rename the acr images as well? For sake of consistency?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renaming acr images would require changes in deployments. I believe we should keep those as is for now. But at some point we should probably rethink the build strategy, and use tags instead of build numbers.

Comment thread .github/workflows/build.yml Outdated
env:
IMAGE: fortiregistry.azurecr.io/fortiup:${{ github.run_id }}
ACR_IMAGE: fortiregistry.azurecr.io/fortiup:${{ github.run_id }}
GHCR_IMAGE: ghcr.io/${{ github.repository_owner }}/fortiup:${{ github.run_id }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe skip pushing this one to ghcr for now? It is not really needed as a docker container for others.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix

Comment thread .github/workflows/devcontainer.yml Outdated
runs-on: ubuntu-latest
env:
ACR_IMAGE: fortiregistry.azurecr.io/devcontainer:latest
GHCR_IMAGE: ghcr.io/${{ github.repository_owner }}/devcontainer:latest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, maybe forti-devcontainer?

@vegardb
vegardb merged commit a72af10 into main Jun 17, 2026
14 checks passed
@vegardb
vegardb deleted the 7-add-push-to-github-registry branch June 17, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add push to github registry

2 participants