From 649c896d7b0a3c5742d4ec8da73dc38f13a5e796 Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 7 Dec 2023 17:56:04 +0100 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..b8272a1 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,23 @@ +name: Docker Redis + +on: + push: + branches: + - 'main' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/redis:latest