Skip to content

Commit

Permalink
update build and push docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Eshanchik committed Jun 21, 2024
1 parent abe2750 commit bd94001
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build_and_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: # Передаем аргумент ветки в Dockerfile
BRANCH: ${{ github.ref_name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new

Expand Down Expand Up @@ -96,6 +98,8 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: # Передаем аргумент ветки в Dockerfile
BRANCH: ${{ github.ref_name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new

Expand Down Expand Up @@ -143,6 +147,8 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: # Передаем аргумент ветки в Dockerfile
BRANCH: ${{ github.ref_name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new

Expand Down Expand Up @@ -190,6 +196,8 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: # Передаем аргумент ветки в Dockerfile
BRANCH: ${{ github.ref_name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile_db
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM debian:bullseye-slim

WORKDIR /app

COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:main /tmp/builder/target/release/airdao-gov-portal-db .
COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:main /tmp/builder/gov-portal-db /app/gov-portal-db
COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:${BRANCH} /tmp/builder/target/release/airdao-gov-portal-db .
COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:${BRANCH} /tmp/builder/gov-portal-db /app/gov-portal-db

RUN apt-get update && apt-get install -y lsb-release ca-certificates libssl-dev && apt-get clean all

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile_mailer
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM debian:bullseye-slim

WORKDIR /app

COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:main /tmp/builder/target/release/airdao-gov-portal-mailer .
COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:main /tmp/builder/mailer /app/mailer
COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:${BRANCH} /tmp/builder/target/release/airdao-gov-portal-mailer .
COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:${BRANCH} /tmp/builder/mailer /app/mailer

RUN apt-get update && apt-get install -y lsb-release ca-certificates libssl-dev && apt-get clean all

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile_verifier
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM debian:bullseye-slim

WORKDIR /app

COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:main /tmp/builder/target/release/airdao-gov-user-verifier .
COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:main /tmp/builder/config /app/config
COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:${BRANCH} /tmp/builder/target/release/airdao-gov-user-verifier .
COPY --from=ghcr.io/ambrosus/airdao-gov-user-binary:${BRANCH} /tmp/builder/config /app/config

RUN apt-get update && apt-get install -y lsb-release ca-certificates libssl-dev && apt-get clean all

Expand Down

0 comments on commit bd94001

Please sign in to comment.