Skip to content

Commit

Permalink
test3
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeDTomita committed Jan 3, 2025
1 parent 76710bc commit 049a479
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@ jobs:
steps:
- name: checkout repository to runner
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- name: Login to GitHub Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_SECRET_PACKAGE }} # write packages and repo

- name: Build and push
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
with:
context: .
push: true
tags: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}:latest"
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=inline
cache-to: type=inline,mode=max
6 changes: 6 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ services:
build:
context: ./
dockerfile: Dockerfile
# cache_from:
# - ghcr.io/ryosukedtomita/devsecops-demo-aws-ecs
# - type=inline
# cache_to:
# - ghcr.io/ryosukedtomita/devsecops-demo-aws-ecs
# - type=inline
image: react-app:latest
container_name: react-app-container
ports:
Expand Down

0 comments on commit 049a479

Please sign in to comment.