Skip to content

Commit

Permalink
[cherry-pick] Publish docker images to ghcr.io (#280) (#289)
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 edb421c commit 57fb376
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/postgres

ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true

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/postgres

RUN set -x \
&& apk add --update --no-cache ca-certificates tzdata \
&& echo 'Etc/UTC' > /etc/timezone
Expand Down

0 comments on commit 57fb376

Please sign in to comment.