Skip to content

Commit

Permalink
fix(build): More ci workflow tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
monotasker committed Sep 20, 2024
1 parent cb9362f commit 58c2996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

# Set up Python 3.9 environment
- name: Set up Python 3.9
Expand Down Expand Up @@ -120,9 +122,6 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
run: |
docker image ls
echo $ECR_REGISTRY
echo $RELEASE_VERSION
docker push $ECR_REGISTRY/kcworks:$RELEASE_VERSION
- name: Start containers
Expand All @@ -140,21 +139,6 @@ jobs:
touch .env
docker compose --file docker-compose.dev.yml down
- name: Remove the Docker image with version number
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
run: docker rmi $REGISTRY/$DOCKERHUB_USERNAME/$IMAGE_NAME:$RELEASE_VERSION

- name: Remove the Docker image with latest tag
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
run: docker rmi $REGISTRY/$DOCKERHUB_USERNAME/$IMAGE_NAME:latest

- name: Remove the local image
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
run: docker rmi $REGISTRY/$DOCKERHUB_USERNAME/$IMAGE_NAME:$RELEASE_VERSION

- name: Prune Docker
run: docker system prune -af

2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ COPY site ./site

COPY Pipfile Pipfile.lock ./

RUN git submodule update --init --recursive

# NOTE: turned off --deploy for dev
RUN pipenv install --system

Expand Down

0 comments on commit 58c2996

Please sign in to comment.