Relocate to GitHub
This commit is contained in:
@@ -18,16 +18,16 @@ jobs:
|
||||
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
|
||||
|
||||
build:
|
||||
name: GitHub Package Registry
|
||||
name: GitHub Container Registry
|
||||
runs-on: ubuntu-latest
|
||||
needs: [prepare-data]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Login to GitHub Package Registry
|
||||
- name: Login
|
||||
run: echo ${{ secrets.PAT }} | docker login ghcr.io -u luketainton --password-stdin
|
||||
- name: Build image for GitHub Package Registry
|
||||
- name: Build
|
||||
run: docker build . --file Dockerfile --tag ghcr.io/luketainton/hesk:${{ needs.prepare-data.outputs.tag }} --tag ghcr.io/luketainton/hesk:latest
|
||||
- name: Push image to GitHub Package Registry
|
||||
- name: Push
|
||||
run: |
|
||||
docker push ghcr.io/luketainton/hesk:latest
|
||||
docker push ghcr.io/luketainton/hesk:${{ needs.prepare-data.outputs.tag }}
|
||||
@@ -1,20 +0,0 @@
|
||||
stages:
|
||||
- build
|
||||
- upload
|
||||
- release
|
||||
|
||||
build:
|
||||
stage: build
|
||||
only:
|
||||
- tags
|
||||
image: docker:19.03.12
|
||||
services:
|
||||
- docker:19.03.12-dind
|
||||
variables:
|
||||
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
||||
script:
|
||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
- docker build -t $CI_REGISTRY_IMAGE:latest -t $IMAGE_TAG .
|
||||
- docker build -t $IMAGE_TAG -t $CI_REGISTRY_IMAGE:latest .
|
||||
- docker push $IMAGE_TAG
|
||||
- docker push $CI_REGISTRY_IMAGE:latest
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM php:apache
|
||||
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
||||
LABEL org.opencontainers.image.source="https://gitlab.com/luketainton/hesk-docker"
|
||||
LABEL org.opencontainers.image.source="https://github.com/luketainton/hesk-docker"
|
||||
COPY --chown=www-data:www-data hesk /srv
|
||||
COPY vhost.conf /etc/apache2/sites-enabled/000-default.conf
|
||||
RUN apt-get update && \
|
||||
|
||||
Reference in New Issue
Block a user