Skip to content

Commit

Permalink
feat(workflow): ci/cd on master
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryVasanth committed Jun 22, 2023
1 parent 868fea4 commit f531488
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/docker-image.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/ga-image-build-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 🐳 On Master - Build and Test Docker Image

on:
push:
branches: ["master"]

jobs:
build-image:
name: 🏗️ Build Image
runs-on: ubuntu-latest

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

- name: 📦 Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 🐳 Login to docker.01-edu.org Registry
uses: docker/login-action@v2
with:
registry: docker.01-edu.org
username: ${{ secrets.USER_DOCKER_01EDU_ORG }}
password: ${{ secrets.SECRET_DOCKER_01EDU_ORG }}

- name: 🏗️ Build the Branch-Blockchain Docker image
run: |
docker build tests/ --file tests/Dockerfile --tag ghcr.io/01-edu/test-blockchain:latest
docker push ghcr.io/01-edu/test-blockchain:latest

0 comments on commit f531488

Please sign in to comment.