Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
msciabarra committed Feb 22, 2024
1 parent d555cd6 commit c26eb86
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 114 deletions.
112 changes: 0 additions & 112 deletions .github/workflows/ci.yaml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

name: Build Images
on:
push:
tags:
- '[0-9]*'
branches-ignore: '*'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout recursive
uses: actions/checkout@v2
#- name: License check
# uses: apache/skywalking-eyes@main
# continue-on-error: true
- name: Registry login
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Buildx install
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: Task
run: sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Setup
run: task setup
- name: Build
run: task build
5 changes: 3 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dotenv: [.env]

vars:
DRY: ""
PUSH: ""
PUSH: "y"
BASETAG: 3.1.0-mastrogpt
BASEIMG: ghcr.io/nuvolaris
COMMON_VER: common1.17.1
Expand Down Expand Up @@ -56,7 +56,7 @@ tasks:
RUNTIME="{{.BASEIMG}}/runtime-{{.RT}}-{{.VER}}:{{.TAG}}"
if test -n "{{.PUSH}}"
then {{.DRY}} docker buildx build -t "$RUNTIME" --build-arg COMMON="{{.COMMON}}" --platform linux/amd64,linux/arm64 . --push
else {{.DRY}} docker buildx build -t "$RUNTIME" --build-arg COMMON="{{.COMMON}}" . --push
else {{.DRY}} docker buildx build -t "$RUNTIME" --build-arg COMMON="{{.COMMON}}" . --load
fi
echo "Built $RUNTIME"
Expand All @@ -74,6 +74,7 @@ tasks:

build:
- task: docker-login
- task: build-common
- task build-lang RT=golang
- task build-lang RT=python
- task build-lang RT=nodejs
Expand Down

0 comments on commit c26eb86

Please sign in to comment.