Skip to content

push to ecr repo

push to ecr repo #9

Workflow file for this run

name: Run Package
on:
push:
branches:
- "master"
- "release*"
permissions:
id-token: write
contents: read
jobs:
run-package:
runs-on: ubuntu-latest
steps:
- name: Checkout latest commit in the PR
uses: actions/checkout@v3
- name: Set up Docker QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Run make docker
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha::7 }}

Check failure on line 39 in .github/workflows/docker.yaml

View workflow run for this annotation

GitHub Actions / Run Package

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yaml (Line: 39, Col: 22): Unexpected symbol: 'sha::7'. Located at position 8 within expression: github.sha::7
run: |
make docker
docker push ${REGISTRY}/amazon-k8s-cni:${IMAGE_TAG}
docker push ${REGISTRY}/amazon-k8s-cni-init:${IMAGE_TAG}