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