forked from External/greenlight
		
	GRN2-346: Another attempt at short sha (#2508)
* Short sha * Another try at short sha
This commit is contained in:
		
							
								
								
									
										68
									
								
								.github/workflows/cd-push.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										68
									
								
								.github/workflows/cd-push.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,34 +1,34 @@ | ||||
| env: | ||||
|   RUBY_VERSION: 2.7.2 | ||||
|  | ||||
|  | ||||
| name: CD Push | ||||
| on: | ||||
|   push: | ||||
|     branches: "master" | ||||
|  | ||||
| jobs: | ||||
|   main: | ||||
|     name: Build Docker Image | ||||
|     runs-on: ubuntu-18.04 | ||||
|     steps: | ||||
|       - name: Set up Docker Buildx | ||||
|         uses: docker/setup-buildx-action@v1 | ||||
|          | ||||
|       - name: Login to Github Container Registry | ||||
|         uses: docker/login-action@v1 | ||||
|         with: | ||||
|           username: ${{ secrets.DOCKER_USERNAME }} | ||||
|           password: ${{ secrets.DOCKER_PASSWORD }} | ||||
|  | ||||
|       - name: Step for Short SHA | ||||
|         run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | ||||
|  | ||||
|       - name: Build and Push latest | ||||
|         uses: docker/build-push-action@v2 | ||||
|         with: | ||||
|           push: true | ||||
|           tags: | | ||||
|             bigbluebutton/greenlight:master | ||||
|             bigbluebutton/greenlight:latest | ||||
|           build-args: version_code=${{ steps.vars.outputs.sha_short  }} | ||||
| env: | ||||
|   RUBY_VERSION: 2.7.2 | ||||
|  | ||||
|  | ||||
| name: CD Push | ||||
| on: | ||||
|   push: | ||||
|     branches: "master" | ||||
|  | ||||
| jobs: | ||||
|   main: | ||||
|     name: Build Docker Image | ||||
|     runs-on: ubuntu-18.04 | ||||
|     steps: | ||||
|       - name: Set up Docker Buildx | ||||
|         uses: docker/setup-buildx-action@v1 | ||||
|          | ||||
|       - name: Login to Github Container Registry | ||||
|         uses: docker/login-action@v1 | ||||
|         with: | ||||
|           username: ${{ secrets.DOCKER_USERNAME }} | ||||
|           password: ${{ secrets.DOCKER_PASSWORD }} | ||||
|  | ||||
|       - name: Step Short SHA | ||||
|         run: echo "::set-output short_sha=${GITHUB_SHA::8}" | ||||
|  | ||||
|       - name: Build and Push latest | ||||
|         uses: docker/build-push-action@v2 | ||||
|         with: | ||||
|           push: true | ||||
|           tags: | | ||||
|             bigbluebutton/greenlight:master | ||||
|             bigbluebutton/greenlight:latest | ||||
|           build-args: version_code=${{ steps.vars.outputs.short_sha  }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user