Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Lint Dockerfile
uses: hadolint/hadolint-action@v3.0.0
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: "Dockerfile"
format: "tty"
Expand All @@ -32,7 +32,7 @@ jobs:
- name: "Export image"
run: mv dockercache amdcache
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: amdcache
path: amdcache
Expand All @@ -47,10 +47,10 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Lint Dockerfile
uses: hadolint/hadolint-action@v3.0.0
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: "Dockerfile"
format: "tty"
Expand All @@ -63,7 +63,7 @@ jobs:
- name: "Export image"
run: mv dockercache armcache
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: armcache
path: armcache
Expand All @@ -82,16 +82,16 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Download amd64
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: amdcache
path: amdcache

- name: Download arm64
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: armcache
path: armcache
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:

- if: github.repository == 'Endava/docker-php' && startsWith(github.ref, 'refs/heads/release/')
name: Upload Ubuntu Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: 'trivy-results.sarif'

Expand All @@ -158,22 +158,22 @@ jobs:
github-pat: ${{ secrets.PAT }}
- if: github.repository == 'Endava/docker-php' && startsWith(github.ref, 'refs/heads/release/')
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- if: github.repository == 'Endava/docker-php' && startsWith(github.ref, 'refs/heads/release/')
name: Login to Quay.io
uses: docker/login-action@v2
uses: docker/login-action@v4
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- if: github.repository == 'Endava/docker-php' && startsWith(github.ref, 'refs/heads/release/')
name: Login to ghcr.io
uses: docker/login-action@v2
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6
- name: Export UBUNTU_SUFFIX (if ubuntu is enabled)
run: echo "UBUNTU_SUFFIX=`echo ${{ github.ref_name }} | grep 'ubuntu' > /dev/null && echo '-ubuntu' || echo ''`" >> $GITHUB_ENV
- name: "Fetch all existing tags"
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Generate Changelog
run: docker run --rm -v `pwd`/previous-php-i.txt:/usr/src/app/previous-php-i.txt -v `pwd`/generate-changelog.php:/usr/src/app/generate-changelog.php ghcr.io/endava/docker-php:${{ github.ref_name }} php /usr/src/app/generate-changelog.php ghcr.io/endava/docker-php:${{ github.ref_name }} > RELEASE_NOTES.txt
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: RELEASE_NOTES.txt