ci: Switch to personal registry
Some checks failed
Release / release (push) Failing after 7s
Python CI / Format Backend (3.11) (push) Failing after 5s
Frontend Build / Format & Build Frontend (push) Successful in 1m11s
Create and publish a Docker image / build-and-push-image (push) Failing after 13m9s

This commit is contained in:
Tibo De Peuter 2024-04-09 15:45:27 +02:00
parent fd5bf819cc
commit 618619eca3
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -12,13 +12,16 @@ on:
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env: env:
REGISTRY: ghcr.io REGISTRY: git.depeuter.dev
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ github.repository }}
RUNNER_TOOL_CACHE: /toolcache
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs: jobs:
build-and-push-image: build-and-push-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions: permissions:
contents: read contents: read
@ -39,7 +42,7 @@ jobs:
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.CI_TOKEN }}
- name: Extract metadata for Docker images - name: Extract metadata for Docker images
id: meta id: meta