Skip to content

tag: 4.2.11

tag: 4.2.11 #38

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: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: registry.uniproject-tech.net
username: robot$github-publisher
password: ${{ secrets.HARBOR_TOKEN }}
- name: Build Docker image
run: docker build -t ${{ secrets.K8S_DOCKER_REGISTHOST }}/hp-infra/arane-site:${{ env.TAG_NAME }} .
- name: Push Docker image
run: docker push ${{ secrets.K8S_DOCKER_REGISTHOST }}/hp-infra/arane-site:${{ env.TAG_NAME }}