This repository was archived by the owner on Jul 14, 2026. It is now read-only.
Add deprecation notice to README #2136
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Build and Push | |
| on: | |
| push: | |
| branches: ['**'] | |
| release: | |
| types: [created] | |
| workflow_dispatch: | |
| env: | |
| IMAGE_NAME: docker.io/simplyblock/spdkcsi | |
| ECR_IMAGE_NAME: public.ecr.aws/simply-block/spdkcsi | |
| QUAY_IMAGE_NAME: quay.io/simplyblock-io/spdkcsi | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_GEOFFREY }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_GEOFFREY }} | |
| aws-region: us-east-1 | |
| - name: Log in to Quay.io | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: quay.io | |
| username: ${{ secrets.QUAY_USERNAME }} | |
| password: ${{ secrets.QUAY_PASSWORD }} | |
| - name: Login to ECR | |
| id: login-ecr | |
| uses: aws-actions/amazon-ecr-login@v2 | |
| with: | |
| registry-type: public | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Extract metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ${{ env.IMAGE_NAME }} | |
| ${{ env.ECR_IMAGE_NAME }} | |
| ${{ env.QUAY_IMAGE_NAME }} | |
| tags: | | |
| type=raw,value=latest,enable=${{ github.ref_name == 'master' || github.event_name == 'release' }} | |
| type=ref,event=branch | |
| type=ref,event=tag | |
| type=sha,prefix=${{ github.ref_name }}-,format=short,enable=${{ github.event_name == 'push' }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: deploy/image/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |