diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 72f2252..38da740 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,16 +9,12 @@ on: workflow_dispatch: env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + REGISTRY: git.viaeon.com + IMAGE_NAME: git.viaeon.com/admin/verify jobs: build-and-push: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - id-token: write + runs-on: ubuntu steps: - name: Checkout repository @@ -27,23 +23,24 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Log in to Container Registry + - name: Log in to Gitea Container Registry uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.TOKEN }} - name: Extract metadata id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ${{ env.IMAGE_NAME }} tags: | type=ref,event=branch type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=sha,prefix= + type=raw,value=latest,enable={{is_default_branch}} - name: Build and push Docker image uses: docker/build-push-action@v5 @@ -52,4 +49,4 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64 + platforms: linux/amd64 \ No newline at end of file