From 92b5499b3fba54765a20aa3c0a6b8232df6016bf Mon Sep 17 00:00:00 2001 From: ndom91 Date: Wed, 4 Sep 2024 14:26:05 +0200 Subject: [PATCH] feat: add GHA to build and push this image to the GHCR --- .github/workflows/push-e2e-img.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/push-e2e-img.yml diff --git a/.github/workflows/push-e2e-img.yml b/.github/workflows/push-e2e-img.yml new file mode 100644 index 0000000000..1ef11fb6c5 --- /dev/null +++ b/.github/workflows/push-e2e-img.yml @@ -0,0 +1,27 @@ +name: build e2e-runner container +on: + push: + branches: + - master + paths: + - 'apps/desktop/e2e/Dockerfile' + +jobs: + docker_publish: + runs-on: ubuntu-latest + permissions: write-all + steps: + - uses: actions/checkout@v4 + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push container image + uses: docker/build-push-action@v6 + with: + context: 'apps/desktop/e2e' + push: true + tags: ghcr.io/gitbutler/e2e-runner:latest