Skip to content

Update Poetry version in Dockerfile to suppot package-mode=false #24

Update Poetry version in Dockerfile to suppot package-mode=false

Update Poetry version in Dockerfile to suppot package-mode=false #24

name: Docker
on:
workflow_dispatch:
push:
# Publish `master` as Docker `latest` image.
branches:
- main
jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build image
run: |
source .env
docker build . --file Dockerfile --tag service-$SUBDOMAIN
- name: Log into registry
run: echo "${{ secrets.PAT }}" | docker login ghcr.io -u compsoc-service --password-stdin
- name: Push image
run: |
source .env
IMAGE_ID=ghcr.io/compsoc-edinburgh/service-$SUBDOMAIN
docker tag service-$SUBDOMAIN $IMAGE_ID:latest
docker tag service-$SUBDOMAIN $IMAGE_ID:${{ github.sha }}
docker push $IMAGE_ID:${{ github.sha }}
docker push $IMAGE_ID:latest
- name: Trigger update
run: |
curl -H "Token: ${{ secrets.WATCHTOWER_TOKEN }}" https://watchtower.dev.comp-soc.com/v1/update