From c5c26ee8d12f02953defc9ecf2cb868bea0b1659 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Sat, 29 Jun 2024 02:02:01 -0700 Subject: [PATCH] Create workflow to auto publish dockers --- .github/workflows/publish-develop-docker.yml | 25 ++++++++++++++++++++ .github/workflows/publish-latest-docker.yml | 24 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/workflows/publish-develop-docker.yml create mode 100644 .github/workflows/publish-latest-docker.yml diff --git a/.github/workflows/publish-develop-docker.yml b/.github/workflows/publish-develop-docker.yml new file mode 100644 index 00000000..cd54681c --- /dev/null +++ b/.github/workflows/publish-develop-docker.yml @@ -0,0 +1,25 @@ +name: Publish Develop Docker Image + +on: + push: + branches: + - develop + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - 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 + uses: docker/build-push-action@v6 + with: + push: true + tags: Archmonger/Conreq:develop diff --git a/.github/workflows/publish-latest-docker.yml b/.github/workflows/publish-latest-docker.yml new file mode 100644 index 00000000..e912112d --- /dev/null +++ b/.github/workflows/publish-latest-docker.yml @@ -0,0 +1,24 @@ +name: Publish Latest Docker Image + +on: + release: + types: [published] + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - 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 + uses: docker/build-push-action@v6 + with: + push: true + tags: Archmonger/Conreq:latest