Skip to content

Commit

Permalink
remove s390x (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
raulcabello committed Dec 14, 2023
1 parent 1d4a2bb commit 08c9390
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 108 deletions.
50 changes: 0 additions & 50 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,54 +100,6 @@ volumes:
host:
path: /var/run/docker.sock

---

kind: pipeline
name: s390x

platform:
os: linux
arch: amd64

node:
arch: s390x

steps:
- name: build
image: rancher/dapper:v0.5.8
commands:
- dapper ci
volumes:
- name: docker
path: /var/run/docker.sock

- name: docker-publish
image: rancher/drone-images:docker-s390x
volumes:
- name: docker
path: /var/run/docker.sock
settings:
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: "rancher/gitjob"
tag: "${DRONE_TAG}-s390x"
username:
from_secret: docker_username
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag

volumes:
- name: docker
host:
path: /var/run/docker.sock

---
kind: pipeline
name: manifest
Expand All @@ -167,7 +119,6 @@ steps:
platforms:
- linux/amd64
- linux/arm64
- linux/s390x
target: "rancher/gitjob:${DRONE_TAG}"
template: "rancher/gitjob:${DRONE_TAG}-ARCH"
when:
Expand All @@ -182,4 +133,3 @@ steps:
depends_on:
- amd64
- arm64
- s390x
53 changes: 0 additions & 53 deletions .golanci.json

This file was deleted.

14 changes: 14 additions & 0 deletions .golangci.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
"unused"
]
},
"linters-settings": {
"revive": {
"rules": [
{
"name": "blank-imports",
"severity": "warning"
},
{
"name": "unexported-return",
"severity": "warning"
}
]
}
},
"run": {
"skip-files": [
"/zz_generated_"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV HELM_URL_V3=https://get.helm.sh/helm-${HELM_VERSION}-linux-${ARCH}.tar.gz

RUN zypper -n install git docker vim wget
RUN if [ "${ARCH}" == "amd64" ]; then \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.52.2; \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.1; \
fi
RUN mkdir /usr/tmp && \
curl ${HELM_URL_V3} | tar xvzf - --strip-components=1 -C /usr/tmp/ && \
Expand Down
7 changes: 4 additions & 3 deletions cmd/gitcloner/gogit/cloner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ import (

func TestCloneRepo(t *testing.T) {
const (
passwordFile = "passFile"
passwordFileContent = "1234"
sshPrivateKeyFile = "sshFile"
passwordFile = "passFile"
passwordFileContent = "1234"
sshPrivateKeyFile = "sshFile"
//nolint:gosec //used for testing, not a real key
sshPrivateKeyFileContent = `-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQC1ZuFGlFeAFqeS6p04QsliOXG3NH1/lQC4UMXdQ0F73ciYBPKq
iQZcoyOu8a2Hsi5HvxDqR1rreTAkJ37C3ErrmKcE1CUJwxBVqkgE17Fzw63QBu0X
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if ! command -v golangci-lint; then echo Running: go fmt
fi

echo Running: golangci-lint
golangci-lint run
golangci-lint run --config .golangci.json

echo Verifying modules
go mod verify

0 comments on commit 08c9390

Please sign in to comment.