Skip to content

Commit

Permalink
Merge pull request #24 from johnf/docker-repo
Browse files Browse the repository at this point in the history
Pull the docker image from the registry
  • Loading branch information
ambientlight authored Jun 13, 2021
2 parents 05018d9 + f19bba7 commit c75594c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ LABEL "com.github.actions.color"="orange"
LABEL "repository"="https://github.com/ambientlight/amplify-cli-action"
LABEL "homepage"="https://github.com/ambientlight/amplify-cli-action.git"

LABEL org.opencontainers.image.source=https://github.com/ambientlight/amplify-cli-action

RUN npm install --global --unsafe-perm @aws-amplify/cli@latest

COPY entrypoint.sh /entrypoint.sh
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,19 @@ jobs:
```

As an alternative, one practical way could be to have a fixed sandbox environment that all PRs will update regardless of the branch (and doesn't get undeployed), so it can be used as a playground to manually test and play around with upcoming updates, but kind in mind there can be potential additional costs involved as some AWS resources used in amplify have fixed by-hours costs (kinesis for example).


## Development

How to roll out a new image

``` bash
VERSION=0.3.0

docker build -t amplify-cli-action:$VERSION .

docker tag amplify-cli-action:$VERSION ghcr.io/ambientlight/amplify-cli-action/amplify-cli-action:$VERSION

docker push ghcr.io/ambientlight/amplify-cli-action/amplify-cli-action:$VERSION

```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ inputs:
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
image: 'docker://ghcr.io/ambientlight/amplify-cli-action/amplify-cli-action:0.3.0'
args:
- ${{ inputs.project_dir }}
- ${{ inputs.source_dir }}
Expand Down

0 comments on commit c75594c

Please sign in to comment.