Skip to content

🔨 DockerレジストリのURLを更新 #26

🔨 DockerレジストリのURLを更新

🔨 DockerレジストリのURLを更新 #26

name: Docker Build and Push
on:
push:
branches:
- main
jobs:
BuildAndPush:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: registry.uniproject.jp
username: robot$github-publisher
password: ${{ secrets.HARBOR_TOKEN }}
- name: Build Docker image
run: |
docker build -t registry.uniproject.jp/hp-infra/arane-site:latest .
docker build -t registry.uniproject.jp/hp-infra/arane-site:stable .
id: build
- name: Push Docker image
run: |
docker push registry.uniproject.jp/hp-infra/arane-site:stable
docker push registry.uniproject.jp/hp-infra/arane-site:latest