Fix XML not supporting boolean attributes with no value #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |