Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

feat: イメージのビルド方法を変更した #4

feat: イメージのビルド方法を変更した

feat: イメージのビルド方法を変更した #4

Workflow file for this run

name: CD(staging)
on: # 検証用。マージ時に修正する。
push:
branches:
- feature/staging
workflow_dispatch:
jobs:
push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/twin-te/twinte-back
tags: |
dev
- 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@v2
with:
context: .
file: deploy.Dockerfile
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max