Skip to content

Commit

Permalink
イメージ名を ec-cube/ec-cube2-php に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Oct 7, 2022
1 parent 1b61a88 commit f9c9dbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/dockerbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
steps:
- name: downcase REPO
run: |
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}-php" >> ${GITHUB_ENV}
- if: ${{ matrix.php == 5.4 }}
run: |
Expand Down Expand Up @@ -78,9 +78,15 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# set latest tag for default branch
type=raw,value=${{ matrix.php }}-apache,enable={{is_default_branch}}
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
flavor: |
latest=auto
suffix=-php-${{ matrix.php }}-apache
prefix=${{ matrix.php }}-apache-
- name: Build and export to Docker
uses: docker/build-push-action@v3
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ services:
ec-cube:
### ローカルでビルドする場合は以下のコマンドを使用します
## docker build -t ec-cube2 --no-cache --pull --build-arg TAG=8.1-apache .
## docker tag ec-cube2 ghcr.io/ec-cube/ec-cube2:master-php-8.1-apache
image: ${REGISTRY:-ghcr.io}/${IMAGE_NAME:-ec-cube/ec-cube2}:${TAG:-master-php-8.1-apache}
## docker tag ec-cube2 ghcr.io/ec-cube/ec-cube2-php:8.1-apache
image: ${REGISTRY:-ghcr.io}/${IMAGE_NAME:-ec-cube/ec-cube2-php}:${TAG:-8.1-apache}
build:
context: .
volumes:
Expand Down

0 comments on commit f9c9dbd

Please sign in to comment.