File tree Expand file tree Collapse file tree 5 files changed +60
-9
lines changed
Expand file tree Collapse file tree 5 files changed +60
-9
lines changed Original file line number Diff line number Diff line change 11version : 2
22updates :
3+ - package-ecosystem : github-actions
4+ directory : " /"
5+ schedule :
6+ interval : " weekly"
7+ reviewers :
8+ - mrrobot47
39 - package-ecosystem : docker
410 directory : " /"
511 schedule :
Original file line number Diff line number Diff line change 1+ on :
2+ workflow_dispatch :
3+ push :
4+ tags :
5+ - ' *'
6+
7+ permissions :
8+ contents : read
9+ packages : write
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+ - name : install docker emulation
18+ run : docker run --rm --privileged tonistiigi/binfmt:latest --install amd64,arm64
19+ - name : Set up buildx
20+ uses : docker/setup-buildx-action@v3
21+ - name : Login to ghcr.io
22+ run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
23+ - name : Build and push
24+ run : |
25+ docker buildx build --platform linux/amd64,linux/arm64 -t $(echo 'ghcr.io/${{ github.repository }}:${{ github.ref_name }}' | tr '[:upper:]' '[:lower:]') --push .
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ tags :
4+ - " v*"
5+ name : Release Creation
6+ jobs :
7+ release :
8+ name : Create a Draft Release on GitHub
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Get Release Name
12+ id : get_release_name
13+ run : |
14+ echo "release_name=${GITHUB_REF_NAME/v/Version }" >> $GITHUB_ENV
15+ - name : Publish a Draft Release
16+ uses : softprops/action-gh-release@v2
17+ with :
18+ body : |
19+ ## What's Changed
20+
21+ **Changelog:**
22+ draft : true # Creates a Draft Release
23+ name : ${{ steps.get_release_name.outputs.release_name }}
24+ generate_release_notes : true
25+ append_body : true
26+
Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ LABEL "com.github.actions.name"="PHPCS Code Review"
55LABEL "com.github.actions.description" ="Run automated code review using PHPCS on your pull requests."
66LABEL "org.opencontainers.image.source" ="https://github.com/rtCamp/action-phpcs-code-review"
77
8- ARG VAULT_VERSION=1.12.3
98ARG DEFAULT_PHP_VERSION=8.3
10- ARG PHP_BINARIES_TO_PREINSTALL='7.4 8.0 8.1 8.2 8.3'
9+ ARG PHP_BINARIES_TO_PREINSTALL='7.4 8.0 8.1 8.2 8.3 8.4 '
1110
1211ENV DOCKER_USER=rtbot
1312ENV ACTION_WORKDIR=/home/$DOCKER_USER
@@ -32,11 +31,7 @@ RUN set -ex \
3231 php"$v" -xmlwriter; \
3332 done \
3433 && update-alternatives --set php /usr/bin/php${DEFAULT_PHP_VERSION} \
35- && wget https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip \
36- && unzip vault_${VAULT_VERSION}_linux_amd64.zip \
37- && mv vault /usr/local/bin/vault \
3834 # cleanup
39- && rm -f vault_${VAULT_VERSION}_linux_amd64.zip \
4035 && apt-get remove software-properties-common unzip -y \
4136 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
4237 && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; } \
@@ -52,8 +47,7 @@ RUN set -ex \
5247 && for v in $PHP_BINARIES_TO_PREINSTALL; do \
5348 php"$v" -v; \
5449 done \
55- && php -v \
56- && vault -v;
50+ && php -v;
5751
5852COPY entrypoint.sh main.sh /usr/local/bin/
5953
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: 'This will run phpcs on PRs'
33author : ' rtCamp'
44runs :
55 using : ' docker'
6- image : ' docker://ghcr.io/rtcamp/action-phpcs-code-review:v3.0.1 '
6+ image : ' docker://ghcr.io/rtcamp/action-phpcs-code-review:v3.1.0 '
77branding :
88 icon : ' check-circle'
99 color : ' green'
You can’t perform that action at this time.
0 commit comments