Skip to content

Commit

Permalink
change docker trigger branch for test 10
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed May 7, 2024
1 parent fd4ac43 commit aba4c7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/docker_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,20 @@ jobs:
type=ref,event=tag
type=sha
- name: Cache Go dependencies
- name: Cache Go dependencies and build
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go_mod-${{ hashFiles('**/go.sum') }}
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go_mod
- name: Cache Go build
uses: actions/cache@v2
with:
path: /tmp/.cache/go-build
key: ${{ runner.os }}-go_build
restore-keys: |
${{ runner.os }}-go_build
${{ runner.os }}-go
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ jobs:
go.mod
go.sum
- name: Cache Go dependencies
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go_mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go_mod
- name: Go mod
if: steps.cache-primes.outputs.cache-hit != 'true'
run: go mod tidy
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ ARG BUILDNUM=""
# Build Geth in a stock Go builder container
FROM golang:1.21-alpine as builder

RUN go env -w GOCACHE=/tmp/.cache/go-build

RUN apk add --no-cache gcc musl-dev linux-headers git

# Get dependencies - will also be cached if we won't change go.mod/go.sum
Expand Down

0 comments on commit aba4c7a

Please sign in to comment.