Skip to content

Commit

Permalink
Add Docker image build workflow for stable releases
Browse files Browse the repository at this point in the history
  • Loading branch information
enrico-ghidoni committed Mar 26, 2024
1 parent e81d73c commit e170f9e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/stable-image-build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e170f9e

Please sign in to comment.