Skip to content

4.2.7

4.2.7 #34

Workflow file for this run

name: Docker Build and Push
on:
push:
tags:
- "v*"
jobs:
BuildAndPush:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Extract tag name
run: |
tagname=${GITHUB_REF#refs/*/} && echo "TAG_NAME=${tagname#v}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
run: docker build -t ${{ secrets.K8S_DOCKER_REGISTHOST }}/arane-site:${{ env.TAG_NAME }} .
- name: Push Docker image
run: docker push ${{ secrets.K8S_DOCKER_REGISTHOST }}/arane-site:${{ env.TAG_NAME }}