From 12f0de657f538958349734cc8f0a255cc1b5d4c0 Mon Sep 17 00:00:00 2001 From: linguist <22963968+lowlighter@users.noreply.github.com> Date: Wed, 30 Dec 2020 22:25:25 +0100 Subject: [PATCH] Use container registry instead of packages [rebuild docker image] --- .github/workflows/workflow.yml | 6 +++--- Dockerfile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 58f5541a..a1df300b 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -23,8 +23,8 @@ jobs: with: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - registry: docker.pkg.github.com - repository: lowlighter/metrics/metrics + registry: ghcr.io + repository: lowlighter/metrics tag_with_ref: true dockerfile: source/docker/Dockerfile @@ -36,7 +36,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - name: Login to GitHub registry - run: docker login docker.pkg.github.com -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} + run: echo ${{ secrets.CONTAINER_REGISTRY_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Build lowlighter/metrics:${{ github.head_ref || 'master' }} run: docker build -t lowlighter/metrics:${{ github.head_ref || 'master' }} . - name: Run tests diff --git a/Dockerfile b/Dockerfile index 1be136f9..78d6565d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Base image -FROM docker.pkg.github.com/lowlighter/metrics/metrics:latest +FROM ghcr.io/lowlighter/metrics:latest # Copy repository COPY . /metrics