Skip to content

Fix release linux ci #8

Fix release linux ci

Fix release linux ci #8

Workflow file for this run

name: Build and push docker image
on:
workflow_dispatch:
push:
tags:
- 'v*'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out source code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
#if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v4
with:
push: true
context: .
file: ./docker/Dockerfile.cpu
tags: ${{ steps.meta.outputs.tags }}
build-args: |
"GITHUB_ACTIONS=${GITHUB_ACTIONS}"