Skip to content

Commit

Permalink
CircleCI から GitHub Action へ
Browse files Browse the repository at this point in the history
GitHub の ksc-ci アカウントの personal authentication token を使わなくていいように
  • Loading branch information
cohei committed Sep 21, 2022
1 parent b21b5e1 commit af0016a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 37 deletions.
35 changes: 0 additions & 35 deletions .circleci/config.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/test-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test Build Push

on: push

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
with:
ghc-version: '8.8.1'
- run: cabal update
- run: cabal test
build-push:
runs-on: ubuntu-latest
needs: test
# if: github.ref == 'refs/heads/master'
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: |
ghcr.io/${{ github.repository }}/calculator:${{ github.sha }}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# 距離計算

[![CircleCI](https://circleci.com/gh/odt/distance.svg?style=svg)](https://circleci.com/gh/odt/distance)

始点の緯度経度、終点の緯度経度が並んだ CSV があります。

``` csv
Expand Down

0 comments on commit af0016a

Please sign in to comment.