Skip to content

Commit 1a78f3d

Browse files
authored
Migrate from CircleCI and Docker Hub to Github Actions and GHCR (#50)
1 parent e79faa0 commit 1a78f3d

2 files changed

Lines changed: 35 additions & 47 deletions

File tree

.circleci/config.yml

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

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)