Difference between revisions of "Github.sha"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} * {{GitHub}}")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
<pre>
 +
    - name: Login to Amazon ECR
 +
      id: login-ecr
 +
      uses: aws-actions/amazon-ecr-login@v1
  
 +
#    - name: Build, tag, and push image to Amazon ECR
 +
#      id: build-image
 +
#      env:
 +
#        ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
 +
#        IMAGE_TAG: ${{ github.sha }}
 +
#      run: |
 +
#        # Build a docker container and
 +
#        # push it to ECR so that it can
 +
#        # be deployed to ECS.
 +
#        docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
 +
#        docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
 +
#        echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
 +
</pre>
  
  
* {{GitHub}}
+
== See also ==
 +
* [[GitHub Actions variables]]
 +
* {{GHA}}
 +
 
 +
[[Category:GitHub Actions]]

Latest revision as of 13:21, 16 February 2024

    - name: Login to Amazon ECR
      id: login-ecr
      uses: aws-actions/amazon-ecr-login@v1

#    - name: Build, tag, and push image to Amazon ECR
#      id: build-image
#      env:
#        ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
#        IMAGE_TAG: ${{ github.sha }}
#      run: |
#        # Build a docker container and
#        # push it to ECR so that it can
#        # be deployed to ECS.
#        docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
#        docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
#        echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT


See also[edit]

Advertising: