File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Docker Build
2+
3+ on :
4+ push :
5+ workflow_dispatch :
6+
7+ env :
8+ DOCKER_APP_REPOSITORY : ghcr.io/${{ github.repository }}
9+
10+ jobs :
11+ debug :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Debug environment
15+ run : env | sort
16+
17+ build :
18+ needs :
19+ - debug
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v4
24+
25+ - name : Set up QEMU
26+ uses : docker/setup-qemu-action@v3
27+
28+ - name : Set up Docker Buildx
29+ uses : docker/setup-buildx-action@v3
30+
31+ - name : Build and push
32+ uses : docker/build-push-action@v6
33+ with :
34+ push : false
35+ tags : |
36+ ${DOCKER_APP_REPOSITORY}:run-${github.run_id}_${github.run_attempt}
Original file line number Diff line number Diff line change 1+ .DS_STORE
Original file line number Diff line number Diff line change 1+ FROM hello-world
Original file line number Diff line number Diff line change 1+ #! /bin/sh -e
2+
3+ docker compose up --build --exit-code-from app
Original file line number Diff line number Diff line change 1+ ---
2+
3+ services :
4+ app :
5+ build : .
6+ image : ${DOCKER_APP_IMAGE}
You can’t perform that action at this time.
0 commit comments