Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Oct 12, 2024
1 parent 11e6163 commit 7a379af
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: docker

on:
release:
types: [published]
types: [ published ]
workflow_dispatch:
inputs:
version:
Expand Down Expand Up @@ -34,6 +34,20 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: deployphp/deployer
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=sha,format=long
type=sha
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=ref,event=tag
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -46,6 +60,5 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
provenance: true
tags: deployphp/deployer:${{ env.RELEASE_VERSION }}

tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ RUN apk add --no-cache bash git openssh-client rsync

COPY deployer.phar deployer.phar

WORKDIR /app

ENTRYPOINT ["php", "deployer.phar"]

0 comments on commit 7a379af

Please sign in to comment.