Skip to content

Commit

Permalink
Merge pull request #37 from CUAHSI/periodic-build-no-publish
Browse files Browse the repository at this point in the history
remove publish image from periodic image build
  • Loading branch information
devincowan authored Mar 14, 2024
2 parents dd95ca9 + 6137f8a commit 2e26cf8
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/periodic-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Periodically Build and Publish to Registry

env:
IMAGE_ROOT: singleuser
REGISTRY_HOSTNAME: docker.io
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
REPOSITORY: ${{ secrets.DOCKER_REPOSITORY }}

on:
schedule:
Expand Down Expand Up @@ -44,32 +40,11 @@ jobs:
uses: xom9ikk/dotenv@v2
with:
path: ${{ env.IMAGE_ROOT }}

- name: Docker Login
run: |
echo "$DOCKER_PASSWORD" | docker login --username $DOCKER_USER --password-stdin

# Build the Docker image
- name: Build
run: |
cd "${IMAGE_ROOT}"
docker compose build ${{ matrix.IMAGE_VARIANT }}
- name: Echo env configuration and set image tag
id: tagging
run: |
echo "JH_BASE: ${{ env.JH_BASE }}"
echo "CUAHSI_BASE: ${{ env.CUAHSI_BASE }}"
echo "BUILD_DATE: ${{ env.BUILD_DATE }}"
echo ------------
export DOCKER_TAG="${REPOSITORY}/${IMAGE_ROOT}-${{ matrix.IMAGE_VARIANT }}:${{ env.CUAHSI_BASE }}"
export DOCKER_FULL_PATH="$DOCKER_TAG-periodic-$(date +'%Y.%m.%d')"
echo "DOCKER_FULL_PATH=$DOCKER_FULL_PATH" >> $GITHUB_ENV
echo $DOCKER_FULL_PATH
docker tag $DOCKER_TAG $DOCKER_FULL_PATH
- name: Push Docker Image
run: |
docker push $DOCKER_FULL_PATH
# TODO: run tests?

0 comments on commit 2e26cf8

Please sign in to comment.