Skip to content

Commit d27c2ac

Browse files
Merge pull request #19 from valory-xyz/fix/docker-and-ci-bump
ci: Bump Dockerfile Go to 1.24 and modernize docker job
2 parents 6b65331 + cc84ac4 commit d27c2ac

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,24 @@ jobs:
9292
- name: Confirm Image
9393
run: echo "Building image for ${{env.BRANCH_NAME}}"
9494
- name: Checkout
95-
uses: actions/checkout@v2
95+
uses: actions/checkout@v4
9696
- name: Set up QEMU
97-
uses: docker/setup-qemu-action@v1
97+
uses: docker/setup-qemu-action@v3
9898
- name: Declare Env Vars
9999
id: vars
100100
shell: bash
101101
run: |
102-
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
103-
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
102+
echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
103+
echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
104104
- name: Set up Docker Buildx
105-
uses: docker/setup-buildx-action@v1
105+
uses: docker/setup-buildx-action@v3
106106
- name: Login to DockerHub
107-
uses: docker/login-action@v1
107+
uses: docker/login-action@v3
108108
with:
109109
username: valory
110110
password: ${{ secrets.ACCESS_TOKEN }}
111111
- name: Build and push
112-
uses: docker/build-push-action@v2
112+
uses: docker/build-push-action@v6
113113
with:
114114
context: .
115115
push: true

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
USER root
44

@@ -7,8 +7,8 @@ RUN apt-get update && apt-get upgrade -y
77
RUN apt install -y python3 python3-pip wget
88

99
# golang
10-
RUN wget https://dl.google.com/go/go1.17.7.linux-amd64.tar.gz && \
11-
tar -xzvf go1.17.7.linux-amd64.tar.gz -C /usr/local && \
10+
RUN wget https://dl.google.com/go/go1.24.0.linux-amd64.tar.gz && \
11+
tar -xzvf go1.24.0.linux-amd64.tar.gz -C /usr/local && \
1212
export PATH=$PATH:/usr/local/go/bin && echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && \
1313
mkdir $HOME/go
1414

0 commit comments

Comments
 (0)