From 3a9c9b6cc5d391275a07922e879d4268cd54d6a1 Mon Sep 17 00:00:00 2001 From: William Floyd Date: Thu, 10 Apr 2025 14:39:32 -0500 Subject: [PATCH] test --- .forgejo/workflows/publish.yml | 53 +++++++++++++++++----------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index 81f7b41..5b8d2dd 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -1,35 +1,36 @@ name: Create and publish a Docker image on: [push] -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} jobs: docker: -# runs-on: ubuntu-latest + runs-on: docker permissions: contents: read packages: write steps: - - name: Checkout + - + name: Checkout uses: actions/checkout@v4 - - - name: Log in to the Container registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Docker metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + # - + # name: Log in to the Container registry + # uses: docker/login-action@v3 + # with: + # registry: ${{ env.REGISTRY }} + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} + # - + # name: Docker metadata + # id: meta + # uses: docker/metadata-action@v5 + # with: + # images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + # - + # name: Build and push + # uses: https://github.com/docker/build-push-action@v6 + # with: + # push: true \ No newline at end of file