Skip to content

Commit

Permalink
fixing tag names must use repo for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jac18281828 committed Mar 18, 2023
1 parent f54a22f commit 72b8911
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ jobs:
ETOPO_SURFACE=${{ matrix.surface }}
VERSION=${{ github.event.release.tag_name }}
tags: |
${{ env.REPOSITORY_PATH }}/${{ matrix.surface }}:${{ matrix.res }}-v${{ github.event.release.tag_name }}
${{ env.REPOSITORY_PATH }}/${{ matrix.surface }}:${{ matrix.res }}-${{ env.REPOSITORY_SHA }}
${{ env.REPOSITORY_PATH }}/${{ matrix.surface }}:${{ matrix.res }}
${{ env.REPOSITORY_PATH }}/${{ matrix.surface }}:latest
ghcr.io/${{ env.REPOSITORY_PATH }}/${{ matrix.surface }}:${{ matrix.res }}-v${{ github.event.release.tag_name }}
ghcr.io/${{ env.REPOSITORY_PATH }}/${{ matrix.surface }}:${{ matrix.res }}-${{ env.REPOSITORY_SHA }}
ghcr.io/${{ env.REPOSITORY_PATH }}/${{ matrix.surface }}:${{ matrix.res }}
ghcr.io/${{ env.REPOSITORY_PATH }}/${{ matrix.surface }}:latest
${{ env.REPOSITORY_PATH }}:${{ matrix.surface }}-${{ matrix.res }}-v${{ github.event.release.tag_name }}
${{ env.REPOSITORY_PATH }}:${{ matrix.surface }}-${{ matrix.res }}-${{ env.REPOSITORY_SHA }}
${{ env.REPOSITORY_PATH }}:${{ matrix.surface }}-${{ matrix.res }}
${{ env.REPOSITORY_PATH }}:${{ matrix.surface }}
ghcr.io/${{ env.REPOSITORY_PATH }}:${{ matrix.surface }}-${{ matrix.res }}-v${{ github.event.release.tag_name }}
ghcr.io/${{ env.REPOSITORY_PATH }}:${{ matrix.surface }}-${{ matrix.res }}-${{ env.REPOSITORY_SHA }}
ghcr.io/${{ env.REPOSITORY_PATH }}:${{ matrix.surface }}-${{ matrix.res }}
ghcr.io/${{ env.REPOSITORY_PATH }}:${{ matrix.surface }}
4 changes: 1 addition & 3 deletions bedrock/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ ARG ETOPO_VERSION
RUN export DEBIAN_FRONTEND=noninteractive && \
apt update && \
apt install -y -q --no-install-recommends \
coreutils \
gmt gmt-gshhg-high ghostscript python3 && \
apt clean && \
rm -rf /var/lib/apt/lists/*
Expand All @@ -42,8 +41,7 @@ COPY --from=builder /bedrock/ /bedrock/

WORKDIR /bedrock
COPY . .
RUN sha256sum /bedrock/ETOPO_2022_${ETOPO_VERSION}_${ETOPO_RES}_N90W180_${ETOPO_SURFACE}.nc > /bedrock/ETOPO_2022_${ETOPO_VERSION}_${ETOPO_RES}_N90W180_${ETOPO_SURFACE}.nc.sha256
RUN VERIFICATION=$(cat /bedrock/ETOPO_2022_${ETOPO_VERSION}_${ETOPO_RES}_N90W180_${ETOPO_SURFACE}.nc.sha256) && echo "ETOPO_2022_${ETOPO_VERSION}_${ETOPO_RES}_N90W180_${ETOPO_SURFACE}.nc sha256 is ${VERIFICATION}"
RUN sha256sum /bedrock/ETOPO_2022_${ETOPO_VERSION}_${ETOPO_RES}_N90W180_${ETOPO_SURFACE}.nc | tee /bedrock/ETOPO_2022_${ETOPO_VERSION}_${ETOPO_RES}_N90W180_${ETOPO_SURFACE}.nc.sha256

LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="bedrock" \
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.9'
services:
etopo-2022-bedrock-30s:
image: jac18281828/bedrock/bed:etopo-2022-30s-gmt6-bedrock-${VERSION}
image: jac18281828/bedrock-bed:etopo-2022-30s-gmt6-bedrock-${VERSION}
network_mode: none
build:
context: bedrock/
Expand All @@ -10,7 +10,7 @@ services:
- ETOPO_SURFACE=bed
- ETOPO_VERSION=v1
etopo-2022-ice-surface-30s:
image: jac18281828/bedrock/surface:etopo-2022-30s-gmt6-surface-${VERSION}
image: jac18281828/bedrock-surface:etopo-2022-30s-gmt6-surface-${VERSION}
network_mode: none
build:
context: bedrock/
Expand Down

0 comments on commit 72b8911

Please sign in to comment.