ci: fix docker manifest release step

pull/5021/head
Nicolas Giard 3 years ago committed by GitHub
parent ae6fcf4383
commit dd1651eac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -249,7 +249,7 @@ jobs:
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag Images - name: Create and Push Manifests
run: | run: |
echo "Creating the manifests..." echo "Creating the manifests..."
@ -269,6 +269,7 @@ jobs:
needs: [beta] needs: [beta]
permissions: permissions:
packages: write packages: write
contents: write
steps: steps:
- name: Set Version Variables - name: Set Version Variables
@ -294,11 +295,8 @@ jobs:
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag Images - name: Create and Push Manifests
run: | run: |
docker pull requarks/wiki:beta-$REL_VERSION_STRICT
docker pull ghcr.io/requarks/wiki:beta-$REL_VERSION_STRICT
echo "Fetching semver tool..." echo "Fetching semver tool..."
curl -LJO https://static.requarks.io/semver curl -LJO https://static.requarks.io/semver
chmod +x semver chmod +x semver
@ -308,27 +306,27 @@ jobs:
MAJORMINOR="$MAJOR.$MINOR" MAJORMINOR="$MAJOR.$MINOR"
echo "Using major $MAJOR and minor $MINOR..." echo "Using major $MAJOR and minor $MINOR..."
echo "Tagging images..." echo "Creating the manifests..."
docker tag requarks/wiki:beta-$REL_VERSION_STRICT requarks/wiki:$REL_VERSION_STRICT docker manifest create requarks/wiki:$REL_VERSION_STRICT requarks/wiki:canary-$REL_VERSION_STRICT requarks/wiki:canary-arm64-$REL_VERSION_STRICT requarks/wiki:canary-armv7-$REL_VERSION_STRICT
docker tag requarks/wiki:beta-$REL_VERSION_STRICT requarks/wiki:$MAJOR docker manifest create requarks/wiki:$MAJOR requarks/wiki:canary-$REL_VERSION_STRICT requarks/wiki:canary-arm64-$REL_VERSION_STRICT requarks/wiki:canary-armv7-$REL_VERSION_STRICT
docker tag requarks/wiki:beta-$REL_VERSION_STRICT requarks/wiki:$MAJORMINOR docker manifest create requarks/wiki:$MAJORMINOR requarks/wiki:canary-$REL_VERSION_STRICT requarks/wiki:canary-arm64-$REL_VERSION_STRICT requarks/wiki:canary-armv7-$REL_VERSION_STRICT
docker tag requarks/wiki:beta-$REL_VERSION_STRICT requarks/wiki:latest docker manifest create requarks/wiki:$latest requarks/wiki:canary-$REL_VERSION_STRICT requarks/wiki:canary-arm64-$REL_VERSION_STRICT requarks/wiki:canary-armv7-$REL_VERSION_STRICT
docker tag ghcr.io/requarks/wiki:beta-$REL_VERSION_STRICT ghcr.io/requarks/wiki:$REL_VERSION_STRICT docker manifest create ghcr.io/requarks/wiki:$REL_VERSION_STRICT ghcr.io/requarks/wiki:canary-$REL_VERSION_STRICT ghcr.io/requarks/wiki:canary-arm64-$REL_VERSION_STRICT ghcr.io/requarks/wiki:canary-armv7-$REL_VERSION_STRICT
docker tag ghcr.io/requarks/wiki:beta-$REL_VERSION_STRICT ghcr.io/requarks/wiki:$MAJOR docker manifest create ghcr.io/requarks/wiki:$MAJOR ghcr.io/requarks/wiki:canary-$REL_VERSION_STRICT ghcr.io/requarks/wiki:canary-arm64-$REL_VERSION_STRICT ghcr.io/requarks/wiki:canary-armv7-$REL_VERSION_STRICT
docker tag ghcr.io/requarks/wiki:beta-$REL_VERSION_STRICT ghcr.io/requarks/wiki:$MAJORMINOR docker manifest create ghcr.io/requarks/wiki:$MAJORMINOR ghcr.io/requarks/wiki:canary-$REL_VERSION_STRICT ghcr.io/requarks/wiki:canary-arm64-$REL_VERSION_STRICT ghcr.io/requarks/wiki:canary-armv7-$REL_VERSION_STRICT
docker tag ghcr.io/requarks/wiki:beta-$REL_VERSION_STRICT ghcr.io/requarks/wiki:latest docker manifest create ghcr.io/requarks/wiki:$latest ghcr.io/requarks/wiki:canary-$REL_VERSION_STRICT ghcr.io/requarks/wiki:canary-arm64-$REL_VERSION_STRICT ghcr.io/requarks/wiki:canary-armv7-$REL_VERSION_STRICT
echo "Pushing images..." echo "Pushing the manifests..."
docker push requarks/wiki:$REL_VERSION_STRICT docker manifest push -p requarks/wiki:$REL_VERSION_STRICT
docker push requarks/wiki:$MAJOR docker manifest push -p requarks/wiki:$MAJOR
docker push requarks/wiki:$MAJORMINOR docker manifest push -p requarks/wiki:$MAJORMINOR
docker push requarks/wiki:latest docker manifest push -p requarks/wiki:$latest
docker push ghcr.io/requarks/wiki:$REL_VERSION_STRICT docker manifest push -p ghcr.io/requarks/wiki:$REL_VERSION_STRICT
docker push ghcr.io/requarks/wiki:$MAJOR docker manifest push -p ghcr.io/requarks/wiki:$MAJOR
docker push ghcr.io/requarks/wiki:$MAJORMINOR docker manifest push -p ghcr.io/requarks/wiki:$MAJORMINOR
docker push ghcr.io/requarks/wiki:latest docker manifest push -p ghcr.io/requarks/wiki:$latest
- name: Download Linux Build - name: Download Linux Build
uses: actions/download-artifact@v2.1.0 uses: actions/download-artifact@v2.1.0

Loading…
Cancel
Save