nerd-fonts/.github/workflows/docker-release.yml
Fini Jastrow f4f19ea0e1 CI: Fix hopeless-docker prevention
[why]
I am sure I tested it and it worked. Well, it does not, it throws an
error message
  Unrecognized named-value: 'secrets'

[how]
Secrets can not be used in the `if`, see
https://github.com/actions/runner/issues/520

But they can be used in `env`, ... so do it there.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-26 19:31:48 +02:00

28 lines
700 B
YAML

name: Docker release
on:
push:
branches:
- master
paths:
# Keep this in line with .dockerignore
- bin/scripts/docker-entrypoint.sh
- bin/scripts/name_parser/Fontname*.py
- src/glyphs/**
- .dockerignore
- Dockerfile
- font-patcher
jobs:
publish-image:
name: Publish image
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'ryanoasis' }}
steps:
- uses: actions/checkout@v3
- name: Build image
run: docker build -t nerdfonts/patcher .
- name: Push image
run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PAT }}
docker push nerdfonts/patcher