Skip to content

Commit

Permalink
removed squashing for develop branch since trivial gains
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Mar 16, 2024
1 parent e49cc2d commit 84e95d0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ jobs:
cache-from: type=registry,ref=cs50/cli:amd64-buildcache
cache-to: type=registry,ref=cs50/cli:amd64-buildcache,mode=max

- name: Squash for linux/amd64
if: ${{ github.ref == 'refs/heads/develop' }}
run: |
pip3 install docker-squash
docker-squash --tag cs50/cli:amd64 cs50/cli:amd64
- name: Push linux/amd64 build to Docker Hub
if: ${{ github.ref == 'refs/heads/main' }}
run: |
Expand All @@ -53,12 +47,6 @@ jobs:
cache-from: type=registry,ref=cs50/cli:arm64-buildcache
cache-to: type=registry,ref=cs50/cli:arm64-buildcache,mode=max

- name: Squash for linux/arm64
if: ${{ github.ref == 'refs/heads/develop' }}
run: |
pip3 install docker-squash
docker-squash --cleanup --tag cs50/cli:arm64 cs50/cli:arm64
- name: Push linux/arm64 build to Docker Hub
if: ${{ github.ref == 'refs/heads/main' }}
run: |
Expand Down

0 comments on commit 84e95d0

Please sign in to comment.