generated from dev-lab-io/containerapps-albumui
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 1007 Bytes
/
build-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Trigger auto deployment
on:
# 手動実行用トリガー
workflow_dispatch:
env:
CONTAINER_REGISTRY: cicd2024rymvmpzpk74hg.azurecr.io
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout to the branch
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set repository name to env
run: |
echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/}" >> $GITHUB_ENV
- name: Confirm if env have REPOSITORY_NAME
run: |
echo ${{ env.REPOSITORY_NAME }}
# Add a step
- name: Log in to container registry
# 認証処理を行うためのアクション
uses: docker/login-action@v2
with:
registry: ${{ env.CONTAINER_REGISTRY }}
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}