login with token
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m8s

This commit is contained in:
hook-lord 2024-12-06 19:35:58 +01:00
parent d6aab7675e
commit fc17076d3f

View File

@ -6,10 +6,6 @@ on:
pull_request: pull_request:
branches: [ main ] branches: [ main ]
env:
REGISTRY: gitea.rannes.dev
IMAGE_NAME: ${{ github.repository }}
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -20,16 +16,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
# - name: Log in to GitHub Container Registry - name: Log in to GitHub Container Registry
# uses: docker/login-action@v3 uses: docker/login-action@v3
# with: with:
# registry: ${{ env.REGISTRY }} registry: ${{ secrets.REGISTRY }}
# username: ${{ github.actor }} username: ${{ secret.USERNAME }}
# password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.TOKEN }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
push: true push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest tags: ${{ secrets.REGISTRY }}/sw-jobs-scraper:latest