Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

chore: deprecation notice (#1) #4

chore: deprecation notice (#1)

chore: deprecation notice (#1) #4

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
jobs:
push_to_registry:
name: Build and Push Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Loging to Dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: gnosischain/nimbus:latest
build-args: |
UPSTREAM_VERSION=latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache