|
20 | 20 |
|
21 | 21 | steps:
|
22 | 22 | - name: Checkout Source
|
23 |
| - uses: actions/checkout@v3 |
| 23 | + uses: actions/checkout@v4 |
24 | 24 |
|
25 | 25 | - name: Get release tag
|
26 | 26 | uses: ./.github/actions/release-tag
|
@@ -65,16 +65,13 @@ jobs:
|
65 | 65 | - ubuntu-18-x64
|
66 | 66 | - ubuntu-20-x64
|
67 | 67 | - ubuntu-20-aarch64
|
68 |
| - - debian-stretch-arm32v5 |
69 |
| - - debian-stretch-arm32v7 |
70 | 68 | - node-10-linux-x64
|
71 | 69 | - swift-5-al2-x64
|
72 | 70 | - swift-5-centos-x64
|
73 | 71 | - swift-5-ubuntu-x64
|
74 | 72 | - rhel8-x64
|
75 | 73 | - opensuse-leap
|
76 | 74 | - fedora-34-x64
|
77 |
| - - raspbian-bullseye |
78 | 75 | - alpine-3.16-x64
|
79 | 76 | - alpine-3.16-x86
|
80 | 77 | - alpine-3.16-arm64
|
|
84 | 81 |
|
85 | 82 | steps:
|
86 | 83 | - name: Checkout Sources
|
87 |
| - uses: actions/checkout@v3 |
| 84 | + uses: actions/checkout@v4 |
88 | 85 |
|
89 | 86 | - name: Get release tag
|
90 | 87 | uses: ./.github/actions/release-tag
|
@@ -132,13 +129,45 @@ jobs:
|
132 | 129 | | aws s3 cp - s3://${{env.AWS_S3_BUCKET}}/releases/$IMAGE_TAG/aws-crt-${{ matrix.variant }}.tar.gz
|
133 | 130 | aws s3 cp s3://${{env.AWS_S3_BUCKET}}/releases/$IMAGE_TAG/aws-crt-${{ matrix.variant }}.tar.gz s3://${{env.AWS_S3_BUCKET}}/LATEST/aws-crt-${{ matrix.variant }}.tar.gz
|
134 | 131 |
|
| 132 | + # The job will directly pull the image from the latest, and push to the new tag. |
| 133 | + # This job is only for a temporary fix. The image would not get updated. |
| 134 | + passthrough-images: |
| 135 | + name: ${{ matrix.variant }} |
| 136 | + runs-on: ubuntu-latest |
| 137 | + strategy: |
| 138 | + fail-fast: false |
| 139 | + matrix: |
| 140 | + variant: |
| 141 | + - raspbian-bullseye |
| 142 | + |
| 143 | + steps: |
| 144 | + - name: Checkout Sources |
| 145 | + uses: actions/checkout@v4 |
| 146 | + |
| 147 | + - name: Get release tag |
| 148 | + uses: ./.github/actions/release-tag |
| 149 | + id: tag |
| 150 | + |
| 151 | + - name: Login to docker repo |
| 152 | + run: aws ecr get-login-password --region us-east-1 | docker login ${{ secrets.AWS_ECR_REPO }} -u AWS --password-stdin |
| 153 | + |
| 154 | + - name: Pull latest image and push |
| 155 | + run: | |
| 156 | + if ! aws --region us-east-1 ecr describe-repositories --repository-names aws-crt-${{ matrix.variant }} > /dev/null 2>&1; then \ |
| 157 | + exit 1 |
| 158 | + fi |
| 159 | + export IMAGE_TAG=${{ steps.tag.outputs.release_tag }} |
| 160 | + docker pull ${{ secrets.AWS_ECR_REPO }}/aws-crt-${{ matrix.variant }}:latest |
| 161 | + docker tag ${{ secrets.AWS_ECR_REPO }}/aws-crt-${{ matrix.variant }}:latest ${{ secrets.AWS_ECR_REPO }}/aws-crt-${{ matrix.variant }}:$IMAGE_TAG |
| 162 | + docker push ${{ secrets.AWS_ECR_REPO }}/aws-crt-${{ matrix.variant }}:$IMAGE_TAG |
| 163 | +
|
135 | 164 | upload-ci-script:
|
136 | 165 | name: Upload container ci script
|
137 | 166 | runs-on: ubuntu-latest
|
138 | 167 |
|
139 | 168 | steps:
|
140 | 169 | - name: Checkout Source
|
141 |
| - uses: actions/checkout@v3 |
| 170 | + uses: actions/checkout@v4 |
142 | 171 |
|
143 | 172 | - name: Get release tag
|
144 | 173 | uses: ./.github/actions/release-tag
|
|
0 commit comments