Skip to content

🔖 1.8.4

🔖 1.8.4 #29

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 registry.uniproject-tech.net/hp-infra/unipro-site:${{ env.TAG_NAME }} .
- name: Push Docker image
run: docker push registry.uniproject-tech.net/hp-infra/unipro-site:${{ env.TAG_NAME }}