Skip to content

Commit

Permalink
fix(su): update image to pull from su binary
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Apr 30, 2024
1 parent 602db5f commit 3100117
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/su.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions servers/su/RunDockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3100117

Please sign in to comment.