Link image to repo and fix image name

This commit is contained in:
J. Elfring (x) 2020-09-18 12:48:33 +02:00
parent d28bfc0a26
commit 6d7ffb62ef
2 changed files with 2 additions and 3 deletions

View file

@ -14,8 +14,7 @@ on:
pull_request:
env:
# TODO: Change variable to your image's name.
IMAGE_NAME: image
IMAGE_NAME: compobot
jobs:
# Run tests.
@ -51,7 +50,6 @@ jobs:
run: docker build . --file Dockerfile --tag $IMAGE_NAME
- name: Log into GitHub Container Registry
# TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT`
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push image to GitHub Container Registry

View file

@ -1,6 +1,7 @@
FROM alpine:latest
LABEL maintainer "J. Elfring <code@elfring.ms>"
LABEL org.opencontainers.image.source https://github.com/elfrinjo/compoBot
RUN apk --no-cache --update \
add bash \