Skip to content

Commit

Permalink
[cherry-pick] Publish docker images to ghcr.io (#411) (#415)
Browse files Browse the repository at this point in the history
/cherry-pick

Signed-off-by: Tamal Saha <tamal@appscode.com>

Co-authored-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
1gtm and tamalsaha authored Oct 8, 2020
1 parent 15a96fd commit 726f238
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@ jobs:
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Build
- name: Publish to GitHub Container Registry
env:
REGISTRY: ghcr.io/stashed
DOCKER_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
USERNAME: 1gtm
APPSCODE_ENV: prod
run: |
docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN}
make release
- name: Publish to Docker Registry
env:
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
USERNAME: 1gtm
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.dbg
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ RUN set -x

FROM {ARG_FROM}

LABEL org.opencontainers.image.source https://github.com/stashed/mongodb

COPY --from=0 restic_{NEW_RESTIC_VER} /bin/restic_{NEW_RESTIC_VER}
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}

Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ RUN set -x

FROM {ARG_FROM}

LABEL org.opencontainers.image.source https://github.com/stashed/mongodb

COPY --from=0 /restic_{NEW_RESTIC_VER} /bin/restic_{NEW_RESTIC_VER}
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}

Expand Down

0 comments on commit 726f238

Please sign in to comment.