From ad4f4d86059ce53d48b2f55591092d88c80ae029 Mon Sep 17 00:00:00 2001 From: Davi Marcondes Moreira Date: Mon, 11 Mar 2024 15:37:05 -0300 Subject: [PATCH] New workflow to deploy to Docker Hub ================> EXTRAS <================ > Branch name: main --- .github/workflows/publish-docker-image.yml | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/publish-docker-image.yml diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml new file mode 100644 index 0000000..b5c615f --- /dev/null +++ b/.github/workflows/publish-docker-image.yml @@ -0,0 +1,57 @@ +name: Docker Hub + +on: + push: + branches: + - 'main' + +jobs: + + setup: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Docker login + run: | + docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} + + build-7_4: + runs-on: ubuntu-latest + steps: + - name: Build and Push 7.4 images + run: | + cd ./7.4 + make latest push + + build-8_0: + runs-on: ubuntu-latest + steps: + - name: Build and Push 8.0 images + run: | + cd ./8.0 + make latest push + + build-8_1: + runs-on: ubuntu-latest + steps: + - name: Build and Push 8.1 images + run: | + cd ./8.1 + make latest push + + build-8_2: + runs-on: ubuntu-latest + steps: + - name: Build and Push 8.2 images + run: | + cd ./8.2 + make latest push + + build-8_3: + runs-on: ubuntu-latest + steps: + - name: Build and Push 8.3 images + run: | + cd ./8.3 + make latest push