Skip to content

Commit 6004ed5

Browse files
committed
chore: migrate from circleci and docker hub to github actions and ghcr
1 parent e79faa0 commit 6004ed5

File tree

2 files changed

+36
-47
lines changed

2 files changed

+36
-47
lines changed

.circleci/config.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)