From a29dd166b0f162858d8980e7d9a598318cb72621 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 27 Sep 2022 23:32:43 +0200 Subject: [PATCH] Add github action workflow to publish latest --- .github/workflows/publish.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..59e4c25 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,24 @@ +name: Publish Docker image + +on: + push: + branches: + - master + +jobs: + push_to_registry: + name: Push Docker image to Docker Hub + runs-on: ubuntu-latest + steps: + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push Docker image + uses: docker/build-push-action@v3 + with: + push: true + tags: crocmagnon/blog:latest + build-args: | + POETRY_OPTIONS="--no-dev"