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 1
1
version : 2
2
2
updates :
3
+ - package-ecosystem : github-actions
4
+ directory : " /"
5
+ schedule :
6
+ interval : " weekly"
7
+ reviewers :
8
+ - mrrobot47
3
9
- package-ecosystem : docker
4
10
directory : " /"
5
11
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"
5
5
LABEL "com.github.actions.description" ="Run automated code review using PHPCS on your pull requests."
6
6
LABEL "org.opencontainers.image.source" ="https://github.com/rtCamp/action-phpcs-code-review"
7
7
8
- ARG VAULT_VERSION=1.12.3
9
8
ARG 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 '
11
10
12
11
ENV DOCKER_USER=rtbot
13
12
ENV ACTION_WORKDIR=/home/$DOCKER_USER
@@ -32,11 +31,7 @@ RUN set -ex \
32
31
php"$v" -xmlwriter; \
33
32
done \
34
33
&& 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 \
38
34
# cleanup
39
- && rm -f vault_${VAULT_VERSION}_linux_amd64.zip \
40
35
&& apt-get remove software-properties-common unzip -y \
41
36
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
42
37
&& { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; } \
@@ -52,8 +47,7 @@ RUN set -ex \
52
47
&& for v in $PHP_BINARIES_TO_PREINSTALL; do \
53
48
php"$v" -v; \
54
49
done \
55
- && php -v \
56
- && vault -v;
50
+ && php -v;
57
51
58
52
COPY entrypoint.sh main.sh /usr/local/bin/
59
53
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: 'This will run phpcs on PRs'
3
3
author : ' rtCamp'
4
4
runs :
5
5
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 '
7
7
branding :
8
8
icon : ' check-circle'
9
9
color : ' green'
You can’t perform that action at this time.
0 commit comments