From 0f1f1f33889216a740301723a7ec786282998722 Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Wed, 21 Jun 2023 18:37:55 +0200 Subject: [PATCH] Actions master -> main --- .gitea/workflows/docker.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/docker.yaml b/.gitea/workflows/docker.yaml index 3120227..920681d 100644 --- a/.gitea/workflows/docker.yaml +++ b/.gitea/workflows/docker.yaml @@ -1,12 +1,12 @@ -name: Build and Deploy +name: Build on: push: - branches: ["master"] + branches: ["main"] # Publish semver tags as releases. tags: ["v*.*.*"] pull_request: - branches: ["master"] + branches: ["main"] schedule: - cron: "0 1 * * *" workflow_dispatch: @@ -15,7 +15,7 @@ env: # # Use docker.io for Docker Hub if empty # REGISTRY: ghcr.io # github.repository as / - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: ${{ gitea.repository }} jobs: build: @@ -29,19 +29,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - # Workaround: https://github.com/docker/build-push-action/issues/461 + # Workaround: https://gitea.com/docker/build-push-action/issues/461 - name: Setup Docker buildx uses: docker/setup-buildx-action@v2 # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} - if: github.event_name != 'pull_request' + if: gitea.event_name != 'pull_request' uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ gitea.actor }} + password: ${{ secrets.GITEA_TOKEN }} # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action @@ -59,7 +59,7 @@ jobs: with: context: . file: docker/web/Containerfile - push: ${{ github.event_name != 'pull_request' }} + push: ${{ gitea.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha