Skip to content

Commit

Permalink
test7
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeDTomita committed Jan 3, 2025
1 parent e338f80 commit f9a92c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
echo ----[DEBUG]: CHECK $env_file----
cat $env_file
echo ----[DEBUG]: END----
docker buildx build --build-arg BUILD_ENV=${environment} --cache-from=ghcr.io/ryosukedtomita/devsecops-demo-aws-ecs --cache-to=type=inline,mode=max -t react-app .
docker buildx build --build-arg BUILD_ENV=${environment} --cache-from=type=registry,ref=ghcr.io/ryosukedtomita/devsecops-demo-aws-ecs --cache-to=type=registry,mode=max -t react-app .
docker compose up -d
docker compose cp react-app:/usr/share/nginx/html build
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/packages.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: push GitHub Container Registry
on:
release:
types: [created]
push:
branches:
- master
- feature/github-pages
# release:
# types: [created]

defaults:
run:
Expand Down Expand Up @@ -36,5 +40,5 @@ jobs:
context: .
push: true
tags: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}:latest"
cache-from: type=inline
cache-to: type=inline,mode=max
cache-from: type=registry,mode=max
cache-to: type=registry,mode=max

0 comments on commit f9a92c8

Please sign in to comment.