Use container registry instead of packages [rebuild docker image]

This commit is contained in:
linguist
2020-12-30 22:25:25 +01:00
parent 54d05c1335
commit 12f0de657f
2 changed files with 4 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ jobs:
with: with:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com registry: ghcr.io
repository: lowlighter/metrics/metrics repository: lowlighter/metrics
tag_with_ref: true tag_with_ref: true
dockerfile: source/docker/Dockerfile dockerfile: source/docker/Dockerfile
@@ -36,7 +36,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Login to GitHub registry - 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' }} - name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
run: docker build -t lowlighter/metrics:${{ github.head_ref || 'master' }} . run: docker build -t lowlighter/metrics:${{ github.head_ref || 'master' }} .
- name: Run tests - name: Run tests

View File

@@ -1,5 +1,5 @@
# Base image # Base image
FROM docker.pkg.github.com/lowlighter/metrics/metrics:latest FROM ghcr.io/lowlighter/metrics:latest
# Copy repository # Copy repository
COPY . /metrics COPY . /metrics