From 54b0be88818a739a9d3cd99228d2ec07b8896105 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Mon, 2 Dec 2024 18:51:51 +0100 Subject: [PATCH] Add workflow --- .forgejo/workflows/docker-ci.yml | 57 ++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .forgejo/workflows/docker-ci.yml diff --git a/.forgejo/workflows/docker-ci.yml b/.forgejo/workflows/docker-ci.yml new file mode 100644 index 0000000..c4edd40 --- /dev/null +++ b/.forgejo/workflows/docker-ci.yml @@ -0,0 +1,57 @@ +name: docker-ci + +on: + push: + +jobs: + web: + runs-on: docker + container: + image: catthehacker/ubuntu:full-latest + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_TOKEN }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Web build and push + uses: docker/build-push-action@v6 + with: + context: "{{defaultContext}}:web" + platforms: linux/amd64,linux/arm64 + push: true + tags: quay.io/peprolinbot/caficteria-web:latest + + bot: + runs-on: docker + container: + image: catthehacker/ubuntu:full-latest + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_TOKEN }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: "{{defaultContext}}:bot" + platforms: linux/amd64,linux/arm64 + push: true + tags: quay.io/peprolinbot/caficteria-bot:latest \ No newline at end of file