Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub actions to use go 1.22 #1217

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_binary_from_ref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: "1.22"

- name: build-all target
run: make receptor
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage_reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on: # yamllint disable-line rule:truthy
branches: [devel]

env:
DESIRED_GO_VERSION: '1.20'
DESIRED_GO_VERSION: '1.22'

jobs:
go_test_coverage:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: "1.22"

- name: Build packages
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: # yamllint disable-line rule:truthy
pull_request: # yamllint disable-line rule:empty-values

env:
DESIRED_GO_VERSION: '1.20'
DESIRED_GO_VERSION: '1.22'
DESIRED_GOLANGCI_LINT_VERSION: 'v1.60'
DESIRED_PYTHON_VERSION: '3.12'

Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: ["1.20", "1.21"]
go-version: ["1.22"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
python-version: ${{ matrix.python-version }}
session: tests-${{ matrix.python-version }}
download-receptor: true
go-version: '1.20'
go-version: '1.22'

lint-receptorctl:
name: Lint receptorctl${{ '' }} # Nest jobs under the same sidebar category
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on: # yamllint disable-line rule:truthy
branches: [devel]

env:
DESIRED_GO_VERSION: '1.20'
DESIRED_GO_VERSION: '1.22'

jobs:
generate_junit_test_report:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: 2
build:
os: ubuntu-lts-latest
tools:
golang: "1.21"
golang: "1.22"
python: "3.12"
# You can also specify other tool versions:
# nodejs: "20"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Installation guide

Download and extract precompiled binary for your OS and platform from `the releases page on GitHub <https://github.com/ansible/receptor/releases>`_

Alternatively, you can compile Receptor from source code (Golang 1.20+ required)
Alternatively, you can compile Receptor from source code (Golang 1.22+ required)

.. code-block:: bash

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ansible/receptor

go 1.21
go 1.22

require (
github.com/creack/pty v1.1.23
Expand Down
4 changes: 2 additions & 2 deletions packaging/container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/ubi:9.4 AS builder
FROM registry.access.redhat.com/ubi9/ubi:9.5 AS builder
ARG VERSION

RUN dnf -y update && \
Expand All @@ -9,7 +9,7 @@ ADD source.tar.gz /source
WORKDIR /source
RUN make VERSION=${VERSION}

FROM registry.access.redhat.com/ubi9/ubi:9.4
FROM registry.access.redhat.com/ubi9/ubi:9.5
ARG VERSION

LABEL license="ASL2"
Expand Down