Skip to content

Commit 726f238

Browse files
1gtmtamalsaha
andauthored
[cherry-pick] Publish docker images to ghcr.io (#411) (#415)
/cherry-pick Signed-off-by: Tamal Saha <tamal@appscode.com> Co-authored-by: Tamal Saha <tamal@appscode.com>
1 parent 15a96fd commit 726f238

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,17 @@ jobs:
3737
- name: Available platforms
3838
run: echo ${{ steps.buildx.outputs.platforms }}
3939

40-
- name: Build
40+
- name: Publish to GitHub Container Registry
41+
env:
42+
REGISTRY: ghcr.io/stashed
43+
DOCKER_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
44+
USERNAME: 1gtm
45+
APPSCODE_ENV: prod
46+
run: |
47+
docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN}
48+
make release
49+
50+
- name: Publish to Docker Registry
4151
env:
4252
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
4353
USERNAME: 1gtm

Dockerfile.dbg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ RUN set -x
3333

3434
FROM {ARG_FROM}
3535

36+
LABEL org.opencontainers.image.source https://github.com/stashed/mongodb
37+
3638
COPY --from=0 restic_{NEW_RESTIC_VER} /bin/restic_{NEW_RESTIC_VER}
3739
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}
3840

Dockerfile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ RUN set -x
3333

3434
FROM {ARG_FROM}
3535

36+
LABEL org.opencontainers.image.source https://github.com/stashed/mongodb
37+
3638
COPY --from=0 /restic_{NEW_RESTIC_VER} /bin/restic_{NEW_RESTIC_VER}
3739
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}
3840

0 commit comments

Comments
 (0)