This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
fix(deps): update all non-major dependencies #1393
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI-Infra | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
paths: | |
- 'aws/**' | |
- 'backend/**' | |
push: | |
branches: | |
- main | |
permissions: | |
id-token: write | |
contents: read | |
env: | |
AWS_REGION: ap-northeast-2 | |
jobs: | |
validation: | |
name: validate terraform | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.AWS_GITHUB_ACTION_ROLE }} | |
aws-region: ${{ env.AWS_REGION }} | |
- uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: 1.5.2 | |
- name: Terraform Init | |
working-directory: ./aws | |
run: terraform init | |
- name: Terraform Validation | |
working-directory: ./aws | |
run: terraform validate | |
docker-build: | |
name: build docker image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image | |
uses: docker/build-push-action@v6 | |
with: | |
file: ./backend/Dockerfile | |
push: false | |
tags: skku-royals/api:latest |