diff --git a/.github/workflows/ci_build.yaml b/.github/workflows/ci_build.yaml new file mode 100644 index 000000000000..e58d989561b2 --- /dev/null +++ b/.github/workflows/ci_build.yaml @@ -0,0 +1,36 @@ +name: Merge Events + +on: + pull_request: + types: + - closed + push: + branches: + - main +jobs: + build: + if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build') + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: e1018mc/limechain:${{ github.sha }} + + - name: Log out from Docker Hub + run: docker logout \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 000000000000..7ef7425e7f20 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,16 @@ +version: '3.8' + +services: + app: + image: e1018mc/limechain:2774314c84293f015c42ffe332f8a216fe54054c + platform: linux/x86_64 + ports: + - "8545:8545" + environment: + - ENV_VAR=Test + networks: + - devnet + +networks: + devnet: + driver: bridge \ No newline at end of file diff --git a/testfile.txt b/testfile.txt new file mode 100644 index 000000000000..1b5f3fdc1e02 --- /dev/null +++ b/testfile.txt @@ -0,0 +1 @@ +Test Workflow