Use container registry instead of packages [rebuild docker image]
This commit is contained in:
6
.github/workflows/workflow.yml
vendored
6
.github/workflows/workflow.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user