File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1010jobs :
1111 build :
1212 runs-on : ubuntu-latest
13-
13+ outputs :
14+ tag : ${{ steps.get_latest_tag.outputs.tag }}
1415 steps :
1516 - name : Checkout repository
1617 uses : actions/checkout@v2
3637 password : ${{ secrets.GITHUB_TOKEN }}
3738
3839 - name : Build and push Docker image
39- uses : docker/build-push-action@v2
40+ uses : docker/build-push-action@v6
4041 with :
4142 context : .
4243 file : ./Dockerfile
Original file line number Diff line number Diff line change 1- # Step 1: Build Stage using musl to create a statically linked executable
1+ ARG DBSYNC_TAG
2+
23FROM alpine:latest AS json_update
34
45# Install necessary build dependencies, including autoconf and libtool
@@ -33,19 +34,18 @@ COPY ./json_merge/update_json.c .
3334# Compile the C program statically using musl-gcc
3435RUN gcc -o update_json update_json.c -ljansson -static
3536
36-
37-
37+ # Step 2: Config Stage to fetch environment files
3838FROM ubuntu:24.04 AS config
3939RUN apt-get update && apt-get install -y git \
4040 && git clone --depth 1 --filter=blob:none --sparse --no-checkout https://github.com/input-output-hk/cardano-playground.git \
4141 && cd cardano-playground \
4242 && git sparse-checkout set docs/environments \
4343 && git checkout
4444
45- ARG DBSYNC_TAG=13.6.0.4
46-
47- FROM ghcr.io/intersectmbo/cardano-db-sync:${DBSYNC_TAG:-13.6.0.4 }
45+ # Step 3: Final Stage
46+ # Declare ARG before FROM to allow its use in FROM
47+ FROM ghcr.io/intersectmbo/cardano-db-sync:${DBSYNC_TAG}
4848COPY --from=json_update /app/update_json /bin/update_json
4949COPY --from=config /cardano-playground/docs/environments /environments
5050COPY ./entrypoint.sh /
51- ENTRYPOINT ["/bin/bash" , "-e" , "/entrypoint.sh" ]
51+ ENTRYPOINT ["/bin/bash" , "-e" , "/entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments