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