Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
azuki774 committed Jul 20, 2024
1 parent 0d79ccd commit f871d3c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/image-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
IMAGE_NAME: bill-fetcher-sbi
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
Expand All @@ -29,17 +29,17 @@ jobs:
type=semver,pattern=latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_ACCESS_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./build/sbi/Dockerfile
Expand All @@ -52,11 +52,11 @@ jobs:
IMAGE_NAME: bill-fetcher-money-forward
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
Expand All @@ -69,7 +69,7 @@ jobs:
type=semver,pattern=latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
Expand All @@ -79,7 +79,7 @@ jobs:
password: ${{ secrets.GH_ACCESS_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./build/money-forward/Dockerfile
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build test

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Build images
uses: make build

0 comments on commit f871d3c

Please sign in to comment.