File tree Expand file tree Collapse file tree 2 files changed +35
-41
lines changed
Expand file tree Collapse file tree 2 files changed +35
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+
2+ on :
3+ push :
4+ branches :
5+ - master
6+ - chore-github-actions # for testing only, remove before merging
7+ schedule :
8+ - cron : " 0 4 * * 1" # weekly
9+
10+ name : build
11+
12+ jobs :
13+ build :
14+ name : Publish Docker images
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ - name : Build directory-api image
19+ run : |
20+ cd api
21+ docker build --no-cache -t ghcr.io/spaceapi/directory-api
22+ - name : Publish directory-api image
23+ run : |
24+ docker tag ghcr.io/spaceapi/directory-api ghcr.io/spaceapi/directory-api:$GITHUB_SHA
25+ docker push ghcr.io/spaceapi/directory-api:$GITHUB_SHA
26+ docker push ghcr.io/spaceapi/directory-api:latest
27+ - name : Build directory-collector image
28+ run : |
29+ cd collector
30+ docker build --no-cache -t ghcr.io/spaceapi/directory-collector
31+ - name : Publish directory-collector image
32+ run : |
33+ docker tag ghcr.io/spaceapi/directory-collector ghcr.io/spaceapi/directory-collector:$GITHUB_SHA
34+ docker push ghcr.io/spaceapi/directory-collector:$GITHUB_SHA
35+ docker push ghcr.io/spaceapi/directory-collector:latest
You can’t perform that action at this time.
0 commit comments