Rework update_latest.yml workflow for dockerhub 'latest' tag.
@@ -46,42 +46,18 @@ jobs:
runs-on: ubuntu-latest
needs: update-cdn-latest
steps:
- - name: Checkout Repository
- uses: actions/checkout@v3
- with:
- ref: v${{ github.event.inputs.version }}
-
- - name: Setup QEMU
- uses: docker/setup-qemu-action@v2
-
- - name: Setup Docker Buildx
- id: buildx
- uses: docker/setup-buildx-action@v2
-
- - name: Login to Dockerhub
+ - name: Login to Container Registry
uses: docker/login-action@v2
with:
- username: scopeci
- password: ${{ secrets.SCOPECI_TOKEN }}
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
- - name: Download Binaries
- uses: actions/download-artifact@v3
- with:
- name: binaries
+ - name: Pull the Image
+ run: docker pull cribl/scope:${{ github.event.inputs.version }}
- - name: Chmod Binaries
- run: chmod +x lib/linux/*/* bin/linux/*/*
+ - name: Update the Latest Tag
+ run: docker tag cribl/scope:${{ github.event.inputs.version }} cribl/scope:latest
- # Build the multi-architecture container image with the
- # latest tag
- - name: Build Image
- run: |
- echo "::group::Build cribl/scope:latest Image"
- docker buildx build \
- --builder ${{ steps.buildx.outputs.name }} \
- --tag cribl/scope:latest \
- --platform linux/amd64,linux/arm64/v8 \
- --output type=registry \
- --file docker/base/Dockerfile \
- .
- echo "::endgroup::"
+ - name: Push the Tag
+ run: docker push cribl/scope:latest
