Skip to content

Commit

Permalink
Docker acp77 latest (#2256)
Browse files Browse the repository at this point in the history
* build images for acp-77 branch

* test ci

* test

* add snapshot config

* add snapshot

* speedup testing

* use devel dockerfile instead of goreleaser snapshot

* rm cp

* fix dockerfile go ver

* add push

* r4r

---------

Co-authored-by: sukantoraymond <[email protected]>
  • Loading branch information
arturrez and sukantoraymond authored Oct 16, 2024
1 parent 6145364 commit 7b6efb8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- "*"
branches:
- acp-77

jobs:
# First confirm that the linting and unit tests pass at this commit prior to creating release artifacts.
Expand Down Expand Up @@ -59,8 +61,19 @@ jobs:

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Build Docker Image with acp77-latest tag
if: github.ref == 'refs/heads/acp-77' # special case for acp-77 branch
run: |
docker buildx build --pull --push --platform=linux/amd64,linux/arm64 \
-t avaplatform/avalanche-cli:acp77-latest \
-f ./Dockerfile .
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TELEMETRY_TOKEN: ${{ secrets.POSTHOG_PROD_TOKEN }}

- name: Run GoReleaser
if: github.ref != 'refs/heads/acp-77' # skip for acp-77 branch
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ============= Compilation Stage ================
FROM golang:1.20-bullseye AS builder
FROM golang:1.22.7-bullseye AS builder

WORKDIR /build
# Copy and download avalanche dependencies using go mod
Expand Down

0 comments on commit 7b6efb8

Please sign in to comment.