Skip to content

Commit

Permalink
Merge pull request #3 from unacast/faster-docker-file
Browse files Browse the repository at this point in the history
Use Dockerfile
  • Loading branch information
judoole authored Sep 7, 2019
2 parents d06f9dd + 5de2196 commit e48426f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
args: bin/deployment-create-status bin/deployment-get-id
- name: Docker build
run: docker build -t actions-github-deployment-status . -f build-dockerfile
run: docker build -t actions-github-deployment-status .
- name: Docker Login
if: github.ref == 'refs/heads/master'
env:
Expand Down
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM alpine:3.10

RUN mkdir /deploy-scripts

COPY ./bin /deploy-scripts/bin

ENTRYPOINT ["/deploy-scripts/bin/deployment-create-status"]

CMD [""]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ For example use this at the end of your job like this:
- name: update deploy status
if: always()
uses: unacast/actions-github-deployment-status@master
env:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
required: true
runs:
using: 'docker'
image: 'docker://unacast/actions-github-deployment-status'
image: 'Dockerfile'
args: ['${{ inputs.status }}']
branding:
icon: 'send'
Expand Down
18 changes: 0 additions & 18 deletions build-dockerfile

This file was deleted.

0 comments on commit e48426f

Please sign in to comment.