Skip to content

Commit fdf75e6

Browse files
fix: docker image (#173)
Signed-off-by: Mariano Goldman <[email protected]> Co-authored-by: Mariano Goldman <[email protected]>
1 parent 021965d commit fdf75e6

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
*.dockerfile
44
README.md
55
.git
6+
target
7+
docs
8+
.github

.github/workflows/tests.yml

+25
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,28 @@ jobs:
4747
env:
4848
DATABASE_URL: postgres://postgres:postgres@localhost:5432/quests_db
4949
REDIS_URL: localhost:6379
50+
<<<<<<< Updated upstream
51+
- name: Set up QEMU
52+
uses: docker/setup-qemu-action@v2
53+
- name: Set up Docker Buildx
54+
uses: docker/setup-buildx-action@v2
55+
- name: Login to DockerHub
56+
uses: docker/login-action@v2
57+
with:
58+
registry: quay.io
59+
username: ${{ secrets.QUAY_USERNAME }}
60+
password: ${{ secrets.QUAY_TOKEN }}
61+
- name: Debug
62+
run: ls -la
63+
- name: Build and push (quests server)
64+
uses: docker/build-push-action@v3
65+
with:
66+
context: .
67+
push: true
68+
tags: quay.io/decentraland/quests-server:${{ github.sha }}
69+
cache-from: type=gha
70+
cache-to: type=gha,mode=max
71+
build-args: |
72+
PROJECT=quests_server
73+
=======
74+
>>>>>>> Stashed changes

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM rust:1.76.0 as chef
2-
RUN cargo install cargo-chef
1+
FROM rust:1.71.0 as chef
2+
RUN cargo install --version 0.1.62 cargo-chef --locked
33

44
WORKDIR /app
55

@@ -20,5 +20,4 @@ RUN cargo build --release -p $PROJECT
2020
FROM gcr.io/distroless/cc-debian11 as runtime
2121
ARG PROJECT
2222
COPY --from=builder /app/target/release/${PROJECT} /usr/local/bin/quests-binary
23-
# COPY --from=builder /app/configuration.toml /usr/local/bin
2423
ENTRYPOINT [ "quests-binary" ]

0 commit comments

Comments
 (0)