Skip to content

Commit

Permalink
ecr-test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkgo committed Jun 11, 2024
1 parent 487f265 commit 7851cd4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-latest-schedule -with-fullmod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: install skopeo
run: apk update && apk upgrade && apk add skopeo
run: apk update && apk upgrade && apk add skopeo aws-cli
- name: login ecr
run: aws ecr-public get-login-password --region us-east-1 | skopeo login --username AWS --password-stdin public.ecr.aws
- name: push ecr
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/ecr-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ecr-test


on:
# schedule:
# - cron: '25 23 * * *'
push:
permissions:
contents: write

jobs:
push-ecr:
runs-on: ubuntu-latest
container: alpine:edge
steps:
- name: "Configure AWS Credentials"
uses: aws-actions/configure-aws-credentials@v4.0.2
with:
aws-region: us-east-1
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: install skopeo
run: apk update && apk upgrade && apk add skopeo aws-cli
- name: login ecr
run: aws ecr-public get-login-password --region us-east-1 | skopeo login --username AWS --password-stdin public.ecr.aws
- name: push ecr
run: skopeo copy --all docker://sliamb/ppgwiso:fullmod docker://public.ecr.aws/sliamb/ppgwiso:fullmod

0 comments on commit 7851cd4

Please sign in to comment.