mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
[actions] renaming jobs and setting up docker job
This commit is contained in:
52
.github/workflows/release.yml
vendored
52
.github/workflows/release.yml
vendored
@@ -7,7 +7,7 @@ on:
|
||||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||
|
||||
jobs:
|
||||
lint_test_build:
|
||||
test:
|
||||
name: Lint, Test, Build
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
@@ -27,7 +27,7 @@ jobs:
|
||||
run: sudo apt-get -y install libpcsclite-dev
|
||||
-
|
||||
name: Lint, Test, Build
|
||||
id: lintTestBuild
|
||||
id: lint_test_build
|
||||
run: V=1 make -j1 bootstrap travis
|
||||
-
|
||||
name: Is Pre-release
|
||||
@@ -39,10 +39,10 @@ jobs:
|
||||
if [ $OUT -eq 0 ]; then IS_PRERELEASE=true; else IS_PRERELEASE=false; fi
|
||||
echo "::set-output name=IS_PRERELEASE::${IS_PRERELEASE}"
|
||||
|
||||
build_upload_github_assets:
|
||||
name: Build & Upload Mac OS | Linux | Windows Assets To Github Release
|
||||
release:
|
||||
name: Create Release & Upload Assets
|
||||
runs-on: ubuntu-latest
|
||||
needs: lint_test_build
|
||||
needs: test
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
@@ -63,27 +63,27 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||
|
||||
# build_upload_docker:
|
||||
# name: Build & Upload Docker Images
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: create_release
|
||||
# if: needs.create_release.outputs.is_prerelease == 'false'
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v2
|
||||
# - name: Setup Go
|
||||
# uses: actions/setup-go@v2
|
||||
# with:
|
||||
# go-version: '^1.15.6'
|
||||
# - name: Build
|
||||
# id: build
|
||||
# run: |
|
||||
# PATH=$PATH:/usr/local/go/bin:/home/admin/go/bin
|
||||
# make docker-artifacts
|
||||
# env:
|
||||
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
#
|
||||
build_upload_docker:
|
||||
name: Build & Upload Docker Images
|
||||
runs-on: ubuntu-latest
|
||||
needs: release
|
||||
if: needs.test.outputs.is_prerelease == 'false'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '^1.15.6'
|
||||
- name: Build
|
||||
id: build
|
||||
run: |
|
||||
PATH=$PATH:/usr/local/go/bin:/home/admin/go/bin
|
||||
make docker-artifacts
|
||||
env:
|
||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
# build_upload_aws_s3_binaries:
|
||||
# name: Build & Upload AWS S3 Binaries
|
||||
# runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user