From 310011707d2b6d65b323b81f6ddd8bee14c6d75d Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Tue, 30 Apr 2024 13:27:48 -0600 Subject: [PATCH] fix(su): update image to pull from su binary --- .github/workflows/su.yml | 12 +++++++++++- docker-compose.yml | 2 +- servers/su/RunDockerfile | 3 +-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/su.yml b/.github/workflows/su.yml index ba1f0aecf..fe287acb1 100644 --- a/.github/workflows/su.yml +++ b/.github/workflows/su.yml @@ -57,11 +57,21 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push container image to GitHub Container Registry + - name: Build and push binary image to GitHub Container Registry uses: docker/build-push-action@v4 with: push: true context: servers/su + tags: | + ghcr.io/ar-io/ao-su-binary:latest + ghcr.io/ar-io/ao-su-binary:${{ github.sha }} + + - name: Build and push image to GitHub Container Registry + uses: docker/build-push-action@v4 + with: + push: true + context: servers/su + file: RunDockerfile tags: | ghcr.io/ar-io/ao-su:latest ghcr.io/ar-io/ao-su:${{ github.sha }} diff --git a/docker-compose.yml b/docker-compose.yml index 97860f79e..da50273ea 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,7 +41,7 @@ services: su: image: ghcr.io/ar-io/ao-su:latest ports: - - 4003:80 + - 4003:9000 volumes: - ./wallets/ao-wallet.json:/usr/app/ao-wallet.json environment: diff --git a/servers/su/RunDockerfile b/servers/su/RunDockerfile index 77f288bd4..e254e50bc 100644 --- a/servers/su/RunDockerfile +++ b/servers/su/RunDockerfile @@ -1,12 +1,11 @@ # Use a minimal base image -FROM alpine:latest +FROM ghcr.io/ar-io/ao-su-binary:latest # Set the working directory in the container WORKDIR /app # Copy the statically-linked binary from your local file system to the container COPY ./su /app/su -COPY ./.wallet.json /app/.wallet.json # Make the binary executable RUN chmod +x /app/su