Remove unneeded helpers, use kubectl waiters, set bash strict mode #351
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 Image CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| types: [opened, synchronize, ready_for_review] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| runner: [ubuntu-latest, ubuntu-24.04-arm] | |
| include: | |
| - os: linux | |
| - arch: amd64 | |
| runner: ubuntu-latest | |
| - arch: arm64 | |
| runner: ubuntu-24.04-arm | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Build the Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| build-args: LDFLAGS=-X 'github.com/aws/secrets-store-csi-driver-provider-aws/server.Version=fakeversion' -X 'github.com/aws/secrets-store-csi-driver-provider-aws/auth.ProviderVersion=fakeversion' -extldflags '-static' | |
| context: . | |
| platforms: ${{ matrix.os }}/${{ matrix.arch }} | |
| load: true | |
| tags: test-build:latest-${{ matrix.arch }} | |
| - name: List images | |
| run: | | |
| docker image ls -a |