From 98e9655c628b9df100f7cabf798652ae13972080 Mon Sep 17 00:00:00 2001 From: Amaro <30492494+TheCloudBricklayer@users.noreply.github.com> Date: Sun, 21 Apr 2024 16:37:13 -0600 Subject: [PATCH] Test: github actions --- .github/workflows/docker-image.yml | 82 +++++++++++++++--------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 172485f..7b3bf27 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -10,47 +10,47 @@ env: NGINX_NAME: ${{ secrets.NGINX_NAME }} jobs: - #build: - # #runs-on: [self-hosted, linux, amd64] - # runs-on: ubuntu-latest - # steps: - # - - # name: Checkout - # uses: actions/checkout@v4 - # - - # name: Set up QEMU - # uses: docker/setup-qemu-action@v3 - # - - # name: Set up Docker Buildx - # uses: docker/setup-buildx-action@v3 - # - - # name: Login to Docker Hub - # uses: docker/login-action@v3 - # with: - # username: ${{ secrets.DOCKERHUB_USERNAME }} - # password: ${{ secrets.DOCKERHUB_TOKEN }} - # - - # name: Build and push ${{ env.APP_NAME }} image - # uses: docker/build-push-action@v5 - # with: - # context: . - # push: true - # tags: | - # ${{ secrets.REGISTRY }}/${{ secrets.APP_NAME }}:latest, - # ${{ secrets.REGISTRY }}/${{ secrets.APP_NAME }}:${{ github.sha }} - # no-cache: true - # platforms: linux/amd64 - # - - # name: Build and push ${{ env.NGINX_NAME }} image - # uses: docker/build-push-action@v5 - # with: - # context: ./nginx/ - # push: true - # tags: | - # ${{ secrets.REGISTRY }}/${{ secrets.NGINX_NAME }}:latest, - # ${{ secrets.REGISTRY }}/${{ secrets.NGINX_NAME }}:${{ github.sha }} - # no-cache: true - # platforms: linux/amd64 + build: + #runs-on: [self-hosted, linux, amd64] + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push ${{ env.APP_NAME }} image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + ${{ secrets.REGISTRY }}/${{ secrets.APP_NAME }}:latest, + ${{ secrets.REGISTRY }}/${{ secrets.APP_NAME }}:${{ github.sha }} + no-cache: true + platforms: linux/amd64 + - + name: Build and push ${{ env.NGINX_NAME }} image + uses: docker/build-push-action@v5 + with: + context: ./nginx/ + push: true + tags: | + ${{ secrets.REGISTRY }}/${{ secrets.NGINX_NAME }}:latest, + ${{ secrets.REGISTRY }}/${{ secrets.NGINX_NAME }}:${{ github.sha }} + no-cache: true + platforms: linux/amd64 Deploy: runs-on: ubuntu-latest environment: