Skip to content

Commit

Permalink
build(github): Simploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestreety committed Jun 3, 2024
1 parent e0bcbd0 commit 72ffcb2
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/create-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install Dependencies
uses: php-actions/composer@v6
with:
Expand All @@ -31,23 +38,6 @@ jobs:
progress: no
args: --no-interaction --no-scripts --optimize-autoloader --ansi --ignore-platform-reqs

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@v5
# with:
# labels: |
# org.opencontainers.image.title=Linter: PHPStan
# org.opencontainers.image.description=Lint with PHPStan & Liquid Light conventions
# org.opencontainers.image.vendor=Liquid Light
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
id: push
uses: docker/build-push-action@v5
Expand All @@ -56,7 +46,8 @@ jobs:
file: ${{ env.APP_PATH }}/../../Dockerfiles/Linter.dockerfile
push: true
labels: |
org.opencontainers.image.title=Linter: PHPStan
org.opencontainers.image.description=Lint with PHPStan & Liquid Light conventions
org.opencontainers.image.vendor=Liquid Light
org.opencontainers.image.title="Linter: PHPStan"
org.opencontainers.image.description="Lint with PHPStan & Liquid Light conventions"
org.opencontainers.image.vendor="Liquid Light"
org.opencontainers.image.source="https://github.com/liquidlight/linter"
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

0 comments on commit 72ffcb2

Please sign in to comment.