Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Retire Travis (#24)
Browse files Browse the repository at this point in the history
* Retire Travis

* Add ignore paths

* Replace Artifact Cache
  • Loading branch information
martialonline committed Oct 8, 2020
1 parent 7a81105 commit 94a9abc
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 23 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ on:
push:
branches:
- 'master'
paths-ignore:
- 'docs/**'
- 'examples/**'
- '**.md'
pull_request:
branches:
- master
types:
- opened
- reopened
- synchronize
paths-ignore:
- 'docs/**'
- 'examples/**'
- '**.md'
create:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
Expand All @@ -31,11 +39,11 @@ jobs:
run: make binary
env:
GOFLAGS: '-gcflags=-trimpath=${{ github.workspace }} -asmflags=-trimpath=${{ github.workspace }}'
- name: Upload Binary
uses: actions/upload-artifact@v2
- name: Cache Artifacts
uses: actions/cache@v2
with:
name: nginx-ingress-operator
path: ${{ github.workspace }}/build/_output/bin/nginx-ingress-operator
key: nginx-ingress-operator-${{ github.run_id }}-${{ github.run_number }}

unit-tests:
name: Unit Tests
Expand All @@ -57,11 +65,11 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Retrieve Binary
uses: actions/download-artifact@v2
- name: Fetch Cached Artifacts
uses: actions/cache@v2
with:
name: nginx-ingress-operator
path: ${{ github.workspace }}/build/_output/bin
path: ${{ github.workspace }}/build/_output/bin/nginx-ingress-operator
key: nginx-ingress-operator-${{ github.run_id }}-${{ github.run_number }}
- name: Docker Buildx
uses: docker/setup-buildx-action@v1
with:
Expand Down Expand Up @@ -94,11 +102,11 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Retrieve Binary
uses: actions/download-artifact@v2
- name: Fetch Cached Artifacts
uses: actions/cache@v2
with:
name: nginx-ingress-operator
path: ${{ github.workspace }}/build/_output/bin
path: ${{ github.workspace }}/build/_output/bin/nginx-ingress-operator
key: nginx-ingress-operator-${{ github.run_id }}-${{ github.run_number }}
- name: Retrieve Tag
id: get_version
run: echo ::set-output name=GIT_TAG::$(echo ${GITHUB_REF/refs\/tags\//} | tr -d v)
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Lint

on:
pull_request:
branches:
- master
types:
- opened
- reopened
- synchronize
paths-ignore:
- 'docs/**'
- 'examples/**'
- '**.md'

defaults:
run:
shell: bash

env:
GOLANGCI_VERSION: 1.29
GOLANGCI_TIMEOUT: 10m0s

jobs:

lint:
name: Lint
runs-on: ubuntu-18.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Lint Code
uses: golangci/golangci-lint-action@v2
with:
version: 'v${{ env.GOLANGCI_VERSION }}'
args: --timeout ${{ env.GOLANGCI_TIMEOUT }}
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Continuous Integration](https://github.com/nginxinc/nginx-ingress-operator/workflows/Continuous%20Integration/badge.svg)](https://github.com/nginxinc/nginx-ingress-operator/actions)

# NGINX Ingress Operator

The NGINX Ingress Operator is a Kubernetes/OpenShift component which deploys and manages one or more [NGINX/NGINX Plus Ingress Controllers](https://github.com/nginxinc/kubernetes-ingress) which in turn handle Ingress traffic for applications running in a cluster.
Expand Down

0 comments on commit 94a9abc

Please sign in to comment.