diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e7a471954a7..5099889d515 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -21,6 +21,23 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 + with: + images: ${{ env.REGISTRY }}/cosmos/${{ env.IMAGE_NAME }} + + - name: Build Docker image + uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 + with: + context: . + tags: ${{ steps.meta.outputs.tags }} + build-args: | + IBC_GO_VERSION=main + + - name: Test simd is runnable + run: | + docker run --rm ${{ steps.meta.outputs.tags }} - name: Log in to the Container registry uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc with: @@ -28,13 +45,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 - with: - images: ${{ env.REGISTRY }}/cosmos/${{ env.IMAGE_NAME }} - - - name: Build and push Docker image + - name: Push Docker image uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 with: context: .