9
9
r-build-and-check :
10
10
runs-on : ubuntu-latest
11
11
container : bioconductor/bioconductor_docker:devel
12
+
12
13
env :
13
- R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
14
+ R_REMOTES_NO_ERRORS_FROM_WARNINGS : TRUE
14
15
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
15
16
CRAN : https://packagemanager.posit.co/cran/__linux__/jammy/latest
17
+
16
18
steps :
17
19
- name : Checkout Repository
18
20
uses : actions/checkout@v3
51
53
- name : Check
52
54
env :
53
55
_R_CHECK_CRAN_INCOMING_REMOTE_ : false
54
- run : rcmdcheck::rcmdcheck(args = c( "--no-manual") , error_on = "warning", check_dir = "check")
56
+ run : rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check")
55
57
shell : Rscript {0}
56
-
57
58
58
59
- name : Build pkgdown
59
60
run : |
68
69
- name : Deploy 🚀
69
70
uses : JamesIves/github-pages-deploy-action@v4
70
71
with :
71
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72
+ TOKEN : ${{ secrets.GITHUB_TOKEN }}
72
73
BRANCH : gh-pages # The branch the action should deploy to.
73
74
FOLDER : docs # The folder the action should deploy.
75
+
74
76
docker-build-and-push :
75
77
# needs: r-build-and-check
76
78
runs-on : ubuntu-latest
82
84
id-token : write
83
85
84
86
steps :
85
- - name : Checkout repository
87
+ - name : Checkout Repository
86
88
uses : actions/checkout@v3
87
-
89
+
88
90
- name : Set Environment Variables
89
91
run : |
90
92
REPO_LOWER="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
@@ -93,30 +95,25 @@ jobs:
93
95
echo "GIT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV
94
96
echo "REGISTRY=${REGISTRY}" >> $GITHUB_ENV
95
97
echo "IMAGE=${REGISTRY}/${REPO_LOWER}" >> $GITHUB_ENV
96
-
98
+
97
99
- name : Show environment
98
100
run : |
99
101
env
100
102
101
-
102
103
# Install the cosign tool except on PR
103
104
# https://github.com/sigstore/cosign-installer
104
105
- name : Install cosign
105
106
if : github.event_name != 'pull_request'
106
- uses : sigstore/cosign-installer@1e95c1de343b5b0c23352d6417ee3e48d5bcd422
107
- with :
108
- cosign-release : ' v1.4.0'
109
-
107
+ uses : sigstore/cosign-installer@v3
110
108
111
- # Workaround: https://github.com/docker/build-push-action/issues/461
112
109
- name : Setup Docker buildx
113
- uses : docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
110
+ uses : docker/setup-buildx-action@v3
114
111
115
112
# Login against a Docker registry except on PR
116
113
# https://github.com/docker/login-action
117
114
- name : Log into registry ${{ env.REGISTRY }}
118
115
if : github.event_name != 'pull_request'
119
- uses : docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
116
+ uses : docker/login-action@v3
120
117
with :
121
118
registry : ${{ env.REGISTRY }}
122
119
username : ${{ github.actor }}
@@ -126,19 +123,18 @@ jobs:
126
123
# https://github.com/docker/metadata-action
127
124
- name : Extract Docker metadata
128
125
id : meta
129
- uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
126
+ uses : docker/metadata-action@v5
130
127
with :
131
128
images : ${{ env.IMAGE }}
132
129
133
130
# Build and push Docker image with Buildx (don't push on PR)
134
131
# https://github.com/docker/build-push-action
135
132
- name : Build and push Docker image
136
133
id : build-and-push
137
- uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
134
+ uses : docker/build-push-action@v5
138
135
with :
139
136
context : .
140
137
push : ${{ github.event_name != 'pull_request' }}
141
138
tags : |
142
139
${{ env.IMAGE }}:latest
143
140
${{ env.IMAGE }}:${{ env.GIT_SHA }}
144
-
0 commit comments