Skip to content

chore(deps): bump golang.org/x/net from 0.9.0 to 0.17.0 (#180) #32

chore(deps): bump golang.org/x/net from 0.9.0 to 0.17.0 (#180)

chore(deps): bump golang.org/x/net from 0.9.0 to 0.17.0 (#180) #32

Workflow file for this run

name: release
on:
push:
branches:
- "main"
tags:
- "v*"
permissions:
contents: write
jobs:
release:
name: Build and release
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
# kcl-go build
- name: Build kcl-go
run: GOOS=linux GOARCH=amd64 go build ./cmds/kcl-go
shell: bash
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: kcllang/kcl-go
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}