From c427ae2f6f3645df4214033e0b04b74efde03c76 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Fri, 30 Aug 2024 15:16:35 +0200 Subject: [PATCH] Create nginx-mariadb-docker-image.yml --- .../workflows/nginx-mariadb-docker-image.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/nginx-mariadb-docker-image.yml diff --git a/.github/workflows/nginx-mariadb-docker-image.yml b/.github/workflows/nginx-mariadb-docker-image.yml new file mode 100644 index 00000000..ce0deb62 --- /dev/null +++ b/.github/workflows/nginx-mariadb-docker-image.yml @@ -0,0 +1,36 @@ +name: Build and Push Nginx Docker Image + +on: + push: + paths: + - 'docker/ubuntu_nginx_mariadb/**' + pull_request: + paths: + - 'docker/ubuntu_nginx_mariadb/**' + +jobs: + build-and-push-nginx: + runs-on: ubuntu-latest + + env: + DOCKER_BUILDKIT: 1 + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Nginx image + uses: docker/build-push-action@v3 + with: + context: ./docker/ubuntu_nginx_mariadb + push: true + tags: openpanel/nginx-mariadb:latest