Skip to content

update img in makefile #3

update img in makefile

update img in makefile #3

Workflow file for this run

name: Build Package
on:
push:
branches:
- main
tags:
- "v*.*.*"
jobs:
build-and-publish:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v') # Only run on tags (releases)
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: kubebrowser
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Extract version from tag
id: extract_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Build and push image
uses: docker/build-push-action@v4
with:
context: .
push: true
file: Dockerfile
platforms: linux/amd64,linux/arm64
tags: ghcr.io/kubebrowser/console-plugin:${{ env.VERSION }}