Skip to content

Commit c75594c

Browse files
authored
Merge pull request #24 from johnf/docker-repo
Pull the docker image from the registry
2 parents 05018d9 + f19bba7 commit c75594c

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ LABEL "com.github.actions.color"="orange"
88
LABEL "repository"="https://github.com/ambientlight/amplify-cli-action"
99
LABEL "homepage"="https://github.com/ambientlight/amplify-cli-action.git"
1010

11+
LABEL org.opencontainers.image.source=https://github.com/ambientlight/amplify-cli-action
12+
1113
RUN npm install --global --unsafe-perm @aws-amplify/cli@latest
1214

1315
COPY entrypoint.sh /entrypoint.sh

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,19 @@ jobs:
287287
```
288288

289289
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).
290+
291+
292+
## Development
293+
294+
How to roll out a new image
295+
296+
``` bash
297+
VERSION=0.3.0
298+
299+
docker build -t amplify-cli-action:$VERSION .
300+
301+
docker tag amplify-cli-action:$VERSION ghcr.io/ambientlight/amplify-cli-action/amplify-cli-action:$VERSION
302+
303+
docker push ghcr.io/ambientlight/amplify-cli-action/amplify-cli-action:$VERSION
304+
305+
```

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ inputs:
3535
default: ''
3636
runs:
3737
using: 'docker'
38-
image: 'Dockerfile'
38+
image: 'docker://ghcr.io/ambientlight/amplify-cli-action/amplify-cli-action:0.3.0'
3939
args:
4040
- ${{ inputs.project_dir }}
4141
- ${{ inputs.source_dir }}

0 commit comments

Comments
 (0)