Skip to content

Commit

Permalink
login after we have run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Feb 7, 2025
1 parent 78b75e8 commit a659f4d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,6 @@ jobs:
echo "commandbox_version=${COMMANDBOX_VERSION}" >> $GITHUB_ENV
echo "IMAGE_TAG=${TAGS}" >> $GITHUB_ENV
- name: DockerHub Login
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Test
env:
COMMANDBOX_VERSION: ${{ env.commandbox_version }}
Expand All @@ -180,7 +173,15 @@ jobs:
docker compose -f docker-compose.test.yml up --build --exit-code-from sut
docker compose -f docker-compose.secret-test.yml up --build --exit-code-from sut
- name: DockerHub Login
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Final
if: github.event_name != 'pull_request'
uses: docker/build-push-action@v4
env:
DOCKER_BUILDKIT: 1
Expand Down

0 comments on commit a659f4d

Please sign in to comment.