From e170f9ecfec04eacf9cd0c3296738bec3c10cf75 Mon Sep 17 00:00:00 2001 From: Enrico Ghidoni Date: Tue, 26 Mar 2024 13:01:29 +0100 Subject: [PATCH] Add Docker image build workflow for stable releases --- .github/workflows/stable-image-build.yml | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/stable-image-build.yml diff --git a/.github/workflows/stable-image-build.yml b/.github/workflows/stable-image-build.yml new file mode 100644 index 0000000..8e79c3e --- /dev/null +++ b/.github/workflows/stable-image-build.yml @@ -0,0 +1,31 @@ +name: Build Owlbot DEV Docker image + +on: + push: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + environment: stable + + steps: + - + name: Checkout repository + uses: actions/checkout@v4 + with: + path: 'owlbot-repo' + - + name: Build the Docker image + run: docker build . --file owlbot-repo/Dockerfile --tag cntoarma/owlbot:latest + - + name: Authenticate to CNTO DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Publish image to DockerHub + run: docker image push cntoarma/owlbot:latest