jx/.gitea/workflows/release.yaml
Matthew Rich 7e23d869a8
Some checks failed
Lint / golangci-lint (push) Successful in 9m43s
Declarative Tests / test (push) Successful in 20s
Declarative Tests / build (push) Successful in 1m6s
Declarative Tests / build-focal (push) Failing after 1m24s
add go to PATH
2024-05-28 23:03:10 -07:00

60 lines
1.6 KiB
YAML

name: Releases
on:
create:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
container:
image: fedora:latest
env:
GOPATH: /
SSH_AUTH_SOCK: /tmp/ssh.sock
ENVIRONMENT: dev
volumes:
- "/etc/gitconfig:/etc/gitconfig:ro"
- "/opt/gitea/act_runner/.ssh/known_hosts:/root/.ssh/known_hosts"
- "/opt/gitea/act_runner/.gitconfig:/root/.gitconfig:ro"
- "/opt/gitea/act_runner/.git-credentials:/root/.git-credentials:ro"
options: --cpus 10
steps:
- uses: actions/checkout@v3
- run: dnf install -y dnf-plugins-core rpm-build rpmdevtools
- run: echo "$(pwd)/go/bin" >> $GITHUB_PATH
- run: dnf builddep -y build/jx.spec
- run: make rpm
- uses: ncipollo/release-action@v1
with:
artifacts: "jx,/root/rpmbuild/**/*.rpm"
build-focal:
runs-on: ubuntu-latest
permissions:
contents: write
container:
image: ubuntu:focal
env:
GOPATH: /
SSH_AUTH_SOCK: /tmp/ssh.sock
ENVIRONMENT: dev
volumes:
- "/etc/gitconfig:/etc/gitconfig:ro"
- "/opt/gitea/act_runner/.ssh/known_hosts:/root/.ssh/known_hosts"
- "/opt/gitea/act_runner/.gitconfig:/root/.gitconfig:ro"
- "/opt/gitea/act_runner/.git-credentials:/root/.git-credentials:ro"
options: --cpus 10
steps:
- uses: actions/checkout@v3
- run: make build-deps
- run: echo "$(pwd)/go/bin" >> $GITHUB_PATH
- run: make build
- run: make deb
- uses: ncipollo/release-action@v1
with:
artifacts: "jx"