Skip to content

Commit

Permalink
Update action to do a remote image pull
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez committed May 31, 2020
1 parent a526c48 commit e47da50
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10
FROM docker:19.03.10
LABEL MAINTAINER = 'Friends of Go ([email protected])'
WORKDIR /github/workspace
COPY entrypoint.sh /entrypoint.sh
Expand Down
21 changes: 12 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ branding:
color: blue
icon: play
inputs:
who-to-greet: # id of input
description: 'Who to greet'
hostAddress:
description: 'Deployment host address'
required: true
caCert:
description: 'CA certificate'
required: true
serverCert:
description: 'Server certificate'
required: true
serverKey:
description: 'Server key'
required: true
default: 'World'
outputs:
time: # id of output
description: 'The time we greeted you'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.who-to-greet }}
image: 'Dockerfile'
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -l

echo "Hello $1, we gonna list your files..."
echo "$(ls -1 | tr '\n' ' ')"
# Pulls alpine:latest Docker image (remotely)
docker -H $INPUT_HOST_ADDRESS --tls --tlscacert=$INPUT_CA_CERT --tlscert=$INPUT_SERVER_CERT --tlskey=$INPUT_SERVER_KEY pull alpine:latest

0 comments on commit e47da50

Please sign in to comment.