Skip to content

Commit

Permalink
add workflow for building localhost image
Browse files Browse the repository at this point in the history
  • Loading branch information
JCSanPedro committed Aug 11, 2024
1 parent 4338a2d commit e7b10ae
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build_localhost_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Push Docker image
on:
push:
tags:
- v*.*.**

jobs:
build-and-push-seeker-image:
name: Build Docker image for localhost network
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: dn3010/sylo-ethereum-testnet
tags: type=semver,pattern={{version}}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

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

- name: Build Tag and Push Docker image
uses: docker/build-push-action@v5
with:
file: docker/localhost-with-protocol/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit e7b10ae

Please sign in to comment.