commit e27ded4de0e729067a09cf94273dc906eefb5205 Author: Annika Backstrom Date: Sun Mar 31 23:40:51 2024 +0100 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2fcd6ce --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +# Container image that runs your code +FROM git.abackstrom.com/containers/deploy + +# Copies your code file from your action repository to the filesystem path `/` of the container +COPY entrypoint.sh /entrypoint.sh + +# Code file to execute when the docker container starts up (`entrypoint.sh`) +ENTRYPOINT ["/entrypoint.sh"] diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..18f4c64 --- /dev/null +++ b/action.yml @@ -0,0 +1,15 @@ +# action.yml +name: 'Gitea Credentials' +description: 'Store git credentials for use with Gitea' +inputs: + user: + description: 'Git user' + required: true + password: + description: 'Git password' + required: true +runs: + using: 'docker' + image: 'Dockerfile' + args: + - "${{ inputs.user }}" "${{ inputs.password }}" diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..0da9c82 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1 @@ +ls -lAF