From 962baf84235c5ec659540ccd592175717aab9b77 Mon Sep 17 00:00:00 2001 From: Shantanu Jain Date: Sat, 3 Aug 2024 14:45:42 -0700 Subject: [PATCH] Test image --- .github/workflows/release.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7aa1e85..037cfae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,21 +4,30 @@ on: push: branches: - master + pull_request: + permissions: contents: read packages: write + jobs: release: runs-on: ubuntu-latest steps: - - uses: docker/login-action@v2 + - uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ github.token }} - - uses: docker/build-push-action@v4 - with: - push: true - tags: | - ghcr.io/${{ github.repository }}:${{ github.ref_name }} - ghcr.io/${{ github.repository }}:latest + + - name: Test + run: | + bash tests/mitmtest.sh + + # - uses: docker/build-push-action@v6 + # if: github.event_name != 'pull_request' + # with: + # push: true + # tags: | + # ghcr.io/${{ github.repository }}:${{ github.ref_name }} + # ghcr.io/${{ github.repository }}:latest