This repository was archived by the owner on Feb 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +16
-38
lines changed
Expand file tree Collapse file tree 4 files changed +16
-38
lines changed Original file line number Diff line number Diff line change 11name : Build Dev Image CI
2-
32on :
43 workflow_dispatch :
54 pull_request :
87 push :
98 branches :
109 - " *"
11-
1210jobs :
1311 build :
1412 runs-on : ubuntu-latest
1513 steps :
16- -
17- name : Checkout
14+ - name : Checkout
1815 uses : actions/checkout@v3
19- -
20- name : Set up QEMU
16+ - name : Set up QEMU
2117 uses : docker/setup-qemu-action@v2
22- -
23- name : Set up Docker Buildx
18+ - name : Set up Docker Buildx
2419 uses : docker/setup-buildx-action@v2
2520 - name : Build CI
2621 uses : docker/build-push-action@v3
3126 build-args : |
3227 VERSION=latest
3328 CARGO_INCREMENTAL=0
34-
Original file line number Diff line number Diff line change 11name : Docker Image Build Push
2-
32on :
43 push :
54 tags :
65 - " *"
7-
86concurrency :
97 group : " docker-image"
108 cancel-in-progress : true
11-
129jobs :
1310 build :
1411 runs-on : ubuntu-latest
1512 steps :
16- -
17- name : Checkout
13+ - name : Checkout
1814 uses : actions/checkout@v3
19- -
20- name : Set up QEMU
15+ - name : Set up QEMU
2116 uses : docker/setup-qemu-action@v2
22- -
23- name : Set up Docker Buildx
17+ - name : Set up Docker Buildx
2418 uses : docker/setup-buildx-action@v2
25-
2619 - name : Generate repository name
2720 run : |
2821 echo "REPOSITORY_PATH=$( echo ${GITHUB_REPOSITORY} | tr '[:upper:]' '[:lower:]' )" >> ${GITHUB_ENV}
2922 echo "REPOSITORY_SHA=$( echo ${GITHUB_SHA} | cut -c 1-8 )" >> ${GITHUB_ENV}
30- -
31- name : Login to GitHub Container Registry
23+ - name : Login to GitHub Container Registry
3224 uses : docker/login-action@v2
3325 with :
3426 registry : ghcr.io
3527 username : ${{ github.repository_owner }}
3628 password : ${{ secrets.GITHUB_TOKEN }}
37- -
38- name : Build and Push
29+ - name : Build and Push
3930 uses : docker/build-push-action@v3
4031 with :
4132 context : .
4233 file : ./prod/Dockerfile
4334 platforms : linux/amd64,linux/arm64
4435 push : true
45- build-args : |
46- VERSION=${{ github.ref_name }}
47- CARGO_INCREMENTAL=0
36+ build-args : " VERSION=${{ github.ref_name }}\n CARGO_INCREMENTAL=0 \n "
4837 tags : |
4938 ghcr.io/${{ env.REPOSITORY_PATH }}:v${{ github.ref_name }}
5039 ghcr.io/${{ env.REPOSITORY_PATH }}:${{ env.REPOSITORY_SHA }}
5140 ghcr.io/${{ env.REPOSITORY_PATH }}:latest
52- -
53- name : GitHub Release
41+ - name : GitHub Release
5442 uses : actions/create-release@v1
5543 env :
5644 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11name : Build Prod Image CI
2-
32on :
43 workflow_dispatch :
54 pull_request :
87 push :
98 branches :
109 - " *"
11-
1210jobs :
1311 build :
1412 runs-on : ubuntu-latest
1513 steps :
16- -
17- name : Checkout
14+ - name : Checkout
1815 uses : actions/checkout@v3
19- -
20- name : Set up QEMU
16+ - name : Set up QEMU
2117 uses : docker/setup-qemu-action@v2
22- -
23- name : Set up Docker Buildx
18+ - name : Set up Docker Buildx
2419 uses : docker/setup-buildx-action@v2
2520 - name : Build Prod Image CI
2621 uses : docker/build-push-action@v3
2722 with :
2823 context : .
29- file : prod/Dockerfile
24+ file : prod/Dockerfile
3025 platforms : linux/amd64
3126 push : false
3227 build-args : |
3328 VERSION=latest
3429 CARGO_INCREMENTAL=0
35-
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ COPY --chown=xmtp:xmtp . .
1515ENV PATH=~${USER}/.cargo/bin:$PATH
1616ENV USER=xmtp
1717
18+ RUN yamlfmt -lint .github/workflows/*.yml
19+
1820ENV CARGO_INCREMENTAL=${CARGO_INCREMENTAL:-1}
1921RUN cargo check
2022RUN cargo fmt --check
You can’t perform that action at this time.
0 commit comments