feat: pipeline container build
This commit is contained in:
parent
cceaea7cb7
commit
0414cf6dfb
6 changed files with 115 additions and 37 deletions
75
.github/workflows/release.yml
vendored
Normal file
75
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
pull_request:
|
||||
branches:
|
||||
- '**'
|
||||
|
||||
# If a 403 error occurs, make sure to set content permission to write
|
||||
# see: https://github.com/go-semantic-release/action/issues/27
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: stackit-docker
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.26
|
||||
- uses: golangci/golangci-lint-action@v3
|
||||
|
||||
# build:
|
||||
# runs-on: stackit-docker
|
||||
## strategy:
|
||||
## fail-fast: true
|
||||
## matrix:
|
||||
## node: [10, 12]
|
||||
# steps:
|
||||
# - uses: actions/checkout@v6
|
||||
#
|
||||
# - uses: actions/setup-node@v1
|
||||
# with:
|
||||
# node-version: ${{ matrix.node }}
|
||||
# - run: npm ci
|
||||
# - run: npm test
|
||||
release:
|
||||
runs-on: stackit-docker
|
||||
# needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- uses: go-semantic-release/action@v1
|
||||
id: semrel
|
||||
with:
|
||||
github-token: ${{ env.FORGEJO_TOKEN }}
|
||||
allow-initial-development-versions: true
|
||||
# update-file: package.json
|
||||
changelog-file: CHANGELOG.md
|
||||
changelog-generator-opt: "emojis=true"
|
||||
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
if: steps.semrel.outputs.version != ''
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ${{ forgejo.server_url }}
|
||||
username: ${{ vars.GIT_USERNAME }}
|
||||
password: ${{ secrets.GIT_PAT }}
|
||||
|
||||
# - name: Set up QEMU
|
||||
# if: steps.semrel.outputs.version != ''
|
||||
# uses: docker/setup-qemu-action@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
if: steps.semrel.outputs.version != ''
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
push: false
|
||||
tags: actions/notify-slim:${{ steps.semrel.outputs.version }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue