Skip to content

Commit

Permalink
Migrate from CircleCI and Docker Hub to Github Actions and GHCR (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3lph authored Feb 3, 2025
1 parent e79faa0 commit 1a78f3d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 47 deletions.
47 changes: 0 additions & 47 deletions .circleci/config.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

on:
push:
branches:
- master
schedule:
- cron: "0 5 * * 1"

name: publish

jobs:
test:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build github-bot image
run: |
docker build \
--no-cache \
--tag ghcr.io/spaceapi/github-bot:latest \
--tag ghcr.io/spaceapi/github-bot:$GITHUB_REF_NAME \
--label "org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
.
- name: Publish githhub-bot image
run: |
docker push -a ghcr.io/spaceapi/github-bot

0 comments on commit 1a78f3d

Please sign in to comment.