Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions version #242

Merged
merged 13 commits into from
May 6, 2024
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Log into registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker images
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
tags: vesoft/nebula-console:nightly, vesoft/nebula-console:v3-nightly
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches:
- master

defaults:
run:
shell: bash

jobs:
package:
name: build package
Expand All @@ -29,14 +25,10 @@ jobs:
arch: arm
- os: windows
arch: arm64
env:
GOPROXY: ${{ vars.GOPROXY }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/checkout@v4
- name: setup-go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.18
- name: set package name
Expand All @@ -57,7 +49,7 @@ jobs:
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.name.outputs.package_name }}
path: ./${{ steps.name.outputs.package_name }}
24 changes: 14 additions & 10 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: pull_request

on:
pull_request:
Expand All @@ -16,11 +16,9 @@ jobs:
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/checkout@v4
- name: setup-go 1.18
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: 1.18
- name: Fmt
Expand Down Expand Up @@ -50,20 +48,26 @@ jobs:
- os: windows
arch: arm64
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/checkout@v4
- name: setup-go 1.18
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: 1.18
- name: set package name
id: name
run: |
output_name=nebula-console-${{ matrix.os }}-${{ matrix.arch }}-pull_request
if [ "${{ matrix.os }}" = "windows" ]; then
output_name+='.exe'
fi
echo "package_name=$output_name" >> $GITHUB_OUTPUT
- name: generate box/blob.go for data/basketballplayer.ngql
run: make gen
env:
GOOS: linux
GOARCH: amd64
- name: build
run: make
run: make name=${{ steps.name.outputs.package_name }}
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
- os: windows
arch: arm64
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: setup-go 1.18
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: 1.18
- name: set package name
Expand Down Expand Up @@ -64,14 +64,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
vesoft/nebula-console
Expand All @@ -87,12 +87,12 @@ jobs:
# v3.0
type=semver,pattern=v{{major}}.{{minor}}
- name: Log into registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker images
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
Expand Down