File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,13 @@ name: Create and publish a Docker image
2
2
3
3
on :
4
4
push :
5
- branches : master
5
+ branches :
6
+ - ' master'
7
+ tags :
8
+ - ' v*'
6
9
pull_request :
10
+ branches :
11
+ - ' master'
7
12
8
13
env :
9
14
REGISTRY : ghcr.io
@@ -21,22 +26,22 @@ jobs:
21
26
uses : actions/checkout@v3
22
27
23
28
- name : Log in to the Container registry
24
- uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
29
+ uses : docker/login-action@v2
25
30
with :
26
31
registry : ${{ env.REGISTRY }}
27
32
username : ${{ github.actor }}
28
33
password : ${{ secrets.GITHUB_TOKEN }}
29
34
30
35
- name : Extract metadata (tags, labels) for Docker
31
36
id : meta
32
- uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
37
+ uses : docker/metadata-action@v4
33
38
with :
34
39
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
35
40
36
41
- name : Build and push Docker image
37
- uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
42
+ uses : docker/build-push-action@v4
38
43
with :
39
44
context : .
40
- push : true
45
+ push : ${{ github.event_name != 'pull_request' }}
41
46
tags : ${{ steps.meta.outputs.tags }}
42
47
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ RUN apt-get update && apt-get install --yes sudo python3-dev python3-pip vim git
25
25
echo "rally ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/00-rally-user && \
26
26
mkdir /rally && chown -R rally:rally /rally
27
27
28
- RUN pip install git+https://github.com/stackhpc/rally-openstack.git@fix-rally --no-cache-dir && \
28
+ RUN pip install git+https://github.com/stackhpc/rally-openstack.git@feature/non-admin-creds --no-cache-dir && \
29
29
pip3 install pymysql psycopg2-binary --no-cache-dir
30
30
31
31
COPY ./etc/motd_for_docker /etc/motd
You can’t perform that action at this time.
0 commit comments