File tree Expand file tree Collapse file tree 2 files changed +36
-47
lines changed
Expand file tree Collapse file tree 2 files changed +36
-47
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 # TODO: remove before merging
7+ schedule :
8+ - cron : " 0 5 * * 1"
9+
10+ name : publish
11+
12+ jobs :
13+ test :
14+ name : Build Docker image
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ with :
19+ submodules : recursive
20+ - name : Login to GitHub Container Registry
21+ uses : docker/login-action@v3
22+ with :
23+ registry : ghcr.io
24+ username : ${{ github.actor }}
25+ password : ${{ secrets.GITHUB_TOKEN }}
26+ - name : Build github-bot image
27+ run : |
28+ docker build \
29+ --no-cache \
30+ --tag ghcr.io/spaceapi/github-bot:latest \
31+ --tag ghcr.io/spaceapi/github-bot:$GITHUB_REF_NAME \
32+ --label "org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
33+ .
34+ - name : Publish githhub-bot image
35+ run : |
36+ docker push -a ghcr.io/spaceapi/github-bot
You can’t perform that action at this time.
0 commit comments