From 2bc65d2329a968c1d50a90eed26c3c0926bc12f2 Mon Sep 17 00:00:00 2001 From: DewGew Date: Thu, 8 Jun 2023 17:40:38 +0200 Subject: [PATCH 1/2] Create publish_beta.yml --- .github/workflows/publish_beta.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish_beta.yml diff --git a/.github/workflows/publish_beta.yml b/.github/workflows/publish_beta.yml new file mode 100644 index 0000000..bea6ff9 --- /dev/null +++ b/.github/workflows/publish_beta.yml @@ -0,0 +1,23 @@ +name: Publish Docker Image + +on: + pull_request: + branches: [ "beta" ] + types: + - closed +jobs: + publish-docker-image: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build the Docker image + run: | + docker build . --tag ghcr.io/${{secrets.DOCKER_USER}}/domoticz-google-assistant:beta + docker push ghcr.io/${{secrets.DOCKER_USER}}/domoticz-google-assistant:beta From afc2c7aa10fd9e17a0fe86143c61ab65ac28eaef Mon Sep 17 00:00:00 2001 From: DewGew Date: Thu, 8 Jun 2023 17:42:23 +0200 Subject: [PATCH 2/2] Update publish_beta.yml --- .github/workflows/publish_beta.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish_beta.yml b/.github/workflows/publish_beta.yml index bea6ff9..6bf288b 100644 --- a/.github/workflows/publish_beta.yml +++ b/.github/workflows/publish_beta.yml @@ -1,10 +1,8 @@ -name: Publish Docker Image +name: Publish Docker Image Beta on: - pull_request: + workflow_dispatch: branches: [ "beta" ] - types: - - closed jobs: publish-docker-image: if: github.event.pull_request.merged == true