From d808ddfe145d128b25867504bf4e56d9675a4297 Mon Sep 17 00:00:00 2001 From: mstar Date: Mon, 30 Dec 2024 15:20:35 +0100 Subject: [PATCH] Add build and push action --- .forgejo/workflows/docker.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .forgejo/workflows/docker.yaml diff --git a/.forgejo/workflows/docker.yaml b/.forgejo/workflows/docker.yaml new file mode 100644 index 0000000..d3c9084 --- /dev/null +++ b/.forgejo/workflows/docker.yaml @@ -0,0 +1,28 @@ +on: + push: + branches: + - main + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Login to Registry + uses: docker/login-action@v3 + with: + registry: ${{ env.GITHUB_SERVER_URL }} + username: ${{ env.GITHUB_REPOSITORY_OWNER }} + password: ${{ env.GITHUB_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: + push: true + tags: ${{ env.GITHUB_REPOSITORY }}:latest