From e559852ab6aeeee9a2ff4474cdb48a947705d868 Mon Sep 17 00:00:00 2001 From: Jan Klass Date: Mon, 11 Mar 2024 23:57:13 +0100 Subject: [PATCH] misc(ci): Add GitHub Actions docker build and publish --- .github/workflows/docker-image_publish.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/docker-image_publish.yml diff --git a/.github/workflows/docker-image_publish.yml b/.github/workflows/docker-image_publish.yml new file mode 100644 index 0000000..5d85190 --- /dev/null +++ b/.github/workflows/docker-image_publish.yml @@ -0,0 +1,21 @@ +name: Docker Image Publish +on: + push: + branches: ["master"] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push Docker image + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 + with: + context: . + file: ./Dockerfile + push: true + tags: mumo