Skip to content

Commit

Permalink
staging環境ようのgithub actionを作成
Browse files Browse the repository at this point in the history
  • Loading branch information
piny940 committed Jan 17, 2024
1 parent e52937e commit fe97d8c
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build for Staging
on:
push:
# branches:
# - main
workflow_dispatch:

jobs:
app:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: piny940
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
push: true
context: ./backend
file: ./backend/Dockerfile
tags: |
ghcr.io/piny940/kintai-backend:main-${{ github.sha }}-${{ github.run_number }}
frontend:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: piny940
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
push: true
context: ./frontend
file: ./frontend/Dockerfile
tags: |
ghcr.io/piny940/kintai-frontend:main-${{ github.sha }}-${{ github.run_number }}

0 comments on commit fe97d8c

Please sign in to comment.