Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions .circleci/config.yml

This file was deleted.

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

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
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build validator image
run: |
docker build \
--no-cache \
--tag ghcr.io/spaceapi/validator:latest \
--tag ghcr.io/spaceapi/validator:$GITHUB_REF_NAME \
--label "org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
.
- name: Publish validator image
run: |
docker push -a ghcr.io/spaceapi/validator
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

on: push

name: test

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup latest Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run tests
run: |
go test ./...
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ be dual licensed as above, without any additional terms or conditions.
<!-- Badges -->
[circle-ci]: https://circleci.com/gh/SpaceApi/validator/tree/master
[circle-ci-badge]: https://circleci.com/gh/SpaceApi/validator/tree/master.svg?style=shield
[docker-image]: https://hub.docker.com/r/spaceapi/validator/
[docker-image-badge]: https://img.shields.io/docker/pulls/spaceapi/validator.svg
[docker-image]: https://github.com/SpaceApi/validator/pkgs/container/validator
[docker-image-badge]: https://img.shields.io/badge/container%20image-ghcr.io/spaceapi/validator-blue.svg
[go-report-card]: https://goreportcard.com/report/github.com/spaceapi/validator
[go-report-card-badge]: https://goreportcard.com/badge/github.com/spaceapi/validator