Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add github action triggered manually to generate docker image #45

Merged
merged 3 commits into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/docker-release.yml
Thegaram marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build and publish scroll-alpine image
# This workflow aims to build images from the feat-deterministic-deployment branch

on:
workflow_dispatch:

jobs:
build:
name: Clone, Build, Publish
runs-on: ubuntu-latest
steps:

- name: Check out repository
uses: actions/checkout@v3
with:
submodules: true

- name: Update submodules recursively
run: git submodule update --init --recursive

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

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '21'

- name: Install dependencies
run: npm install
sbaizet-ledger marked this conversation as resolved.
Show resolved Hide resolved

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

- name: Login to Dockerhub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build deploy image
id: build_deploy_image
env:
REPOSITORY: scrolltech/scroll-stack-contracts
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
file: docker/Dockerfile.deploy
tags: |
${{ env.REPOSITORY }}:deploy-${{ github.sha }}
- name: Build gen image
id: build_gen_image
env:
REPOSITORY: scrolltech/scroll-stack-contracts
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
file: docker/Dockerfile.gen-configs
tags: |
${{ env.REPOSITORY }}:gen-configs-${{ github.sha }}
Loading