+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5001d6c
Create docker-publish.yml
eduardofraga Apr 6, 2023
5238491
Update docker-publish.yml
eduardofraga Apr 6, 2023
04ba88c
Update docker-publish.yml
eduardofraga Apr 6, 2023
8f43f4a
Update docker-publish.yml
eduardofraga Apr 6, 2023
7872f5b
Update docker-publish.yml
eduardofraga Apr 6, 2023
25c6849
Update docker-publish.yml
eduardofraga Apr 6, 2023
8af1eb3
Update docker-publish.yml
eduardofraga Apr 6, 2023
02f3d7f
Update docker-publish.yml
eduardofraga Apr 6, 2023
0d06527
Update docker-publish.yml
eduardofraga Apr 6, 2023
bece6d8
Update docker-publish.yml
eduardofraga Apr 6, 2023
5f3d5ae
Create docker-publish-nginx.yaml
eduardofraga Apr 6, 2023
ec3078d
Rename docker-publish.yml to docker-publish-php-fpm.yml
eduardofraga Apr 6, 2023
7a1f669
Rename docker-publish-nginx.yaml to docker-publish-nginx.yml
eduardofraga Apr 6, 2023
41cf719
Update docker-publish-nginx.yml
eduardofraga Apr 6, 2023
19b2778
Update docker-publish-php-fpm.yml
eduardofraga Apr 6, 2023
4247423
Update docker-publish-php-fpm.yml
eduardofraga Apr 6, 2023
b8c3a00
Update docker-publish-nginx.yml
eduardofraga Apr 6, 2023
7fbfbc9
Update docker-publish-nginx.yml
eduardofraga Apr 6, 2023
92040aa
Update docker-publish-nginx.yml
eduardofraga Apr 6, 2023
99c4e96
Update docker-publish-php-fpm.yml
eduardofraga Apr 6, 2023
3cf183f
Update and rename docker-publish-php-fpm.yml to docker-publish.yml
eduardofraga Apr 6, 2023
54e2ed3
Delete docker-publish-nginx.yml
eduardofraga Apr 6, 2023
28f705f
Merge pull request #5 from eftechcombr/10.0.7
eduardofraga Apr 6, 2023
4948b33
Update docker-publish.yml
eduardofraga Apr 6, 2023
547aaad
Update and rename docker-publish.yml to docker-publish-php-fpm.yml
eduardofraga Apr 6, 2023
edce710
Update docker-publish-php-fpm.yml
eduardofraga Apr 6, 2023
0f2585f
Delete topologia-docker-compose-glpi.png
eduardofraga Apr 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions .github/workflows/docker-publish-php-fpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: Docker

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
schedule:
- cron: '26 6 * * *'
push:
branches: [ "latest", "10.0.7", "10.0.6" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "latest" ]

env:
# Use docker.io for Docker Hub if empty
# REGISTRY: ghcr.io
REGISTRY: "docker.io"
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}



jobs:
build-php-fpm:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@f3c664df7af409cb4873aa5068053ba9d61a57b6 #v2.6.0
with:
cosign-release: 'v1.13.1'


# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}},prefix=php-fpm-
type=ref,event=branch,prefix=php-fpm-

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
with:
context: ./docker/php/
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max


# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
COSIGN_EXPERIMENTAL: "true"
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}

Binary file removed topologia-docker-compose-glpi.png
Binary file not shown.
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载