File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 6767 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6868 APACHE_LOG_DIR : /var/log/alyx
6969 POSTGRES_HOST : localhost
70-
71- # Docker steps only run when master branch pushed to directly OR when a PR is merged
72- - name : Set Docker conditional value if needed
73- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
74- run : |
75- echo "DOCKER_PUSH_NEEDED=true" >> "$GITHUB_ENV"
76-
77- - name : Configure Docker login if needed
78- if : env.DOCKER_PUSH_NEEDED == 'true'
79- uses : docker/login-action@v1
80- with :
81- username : ${{ secrets.DOCKER_HUB_USERNAME }}
82- password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
83-
84- - name : Set up Docker Buildx if needed
85- if : env.DOCKER_PUSH_NEEDED == 'true'
86- uses : docker/setup-buildx-action@v1
87-
88- - name : Build and push Docker base image if needed
89- if : env.DOCKER_PUSH_NEEDED == 'true'
90- uses : docker/build-push-action@v2
91- with :
92- context : .
93- file : ./scripts/deployment_examples/alyx-docker/Dockerfile.base
94- push : true
95- tags : ${{ secrets.DOCKER_HUB_USERNAME }}/alyx:base
You can’t perform that action at this time.
0 commit comments