Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Second test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cerebrate committed Jan 26, 2021
1 parent 164d4f7 commit 7523b26
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt install -y reprepro gpg python3 python3-git python3-gnupg expect python3-debian

ENTRYPOINT ["python3"]
COPY entrypoint.py /entrypoint.py

ENTRYPOINT ["python3", "/entrypoint.py"]
26 changes: 26 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,32 @@ inputs:
debug:
description: "Print debug log"
required: false
github_token:
description: "GitHub token with commit and push scope."
required: true
repo_supported_arch:
description: "Newline-delimited list of supported architectures."
required: true
repo_supported_distro:
description: "Newline-delimited list of supported distributions."
required: true
repo_directory:
description: "Location of APT repo folder relative to git repo root."
required: false
default: "apt"
update_directory:
description: "Directory in which updated packages are placed."
required: false
default: "updates"
public_key:
description: "GPG public key for apt repo"
required: false
private_key:
description: "GPG private key for signing apt repo"
required: false
key_passphrase:
description: "Passphrase of GPG private key"
required: false
runs:
using: "docker"
image: "Dockerfile"
Expand Down
12 changes: 12 additions & 0 deletions entrypoint.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os
import logging

debug = os.environ.get('INPUT_DEBUG', False)

if debug:
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.DEBUG)
else:
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)

if __name__ == '__main__':
logging.info('-- Parsing input --')

0 comments on commit 7523b26

Please sign in to comment.