Skip to content

Commit

Permalink
add docker release
Browse files Browse the repository at this point in the history
  • Loading branch information
zbconsys committed Oct 17, 2024
1 parent 238e4d1 commit 0e1a9a8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Docker Image Release

on:
push:
branches:
- master

jobs:
releaser:
runs-on: ubuntu-latest
steps:
- name: Set Docker Tag
run: echo "DOCKER_TAG=${GITHUB_SHA:0:7}-$(date +%s)" | tee $GITHUB_ENV

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REPO_USER }}
password: ${{ secrets.DOCKER_REPO_TOKEN }}

- name: Build Docker Image
uses: docker/build-push-action@v6
with:
push: true
tags: consensys/linea-ethstats-server:${{ env.DOCKER_TAG }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ config/nodes.js
.node-xmlhttprequest-*
ws_secret.json
stats.json
.idea

0 comments on commit 0e1a9a8

Please sign in to comment.