mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-17 15:27:43 +02:00
27 lines
710 B
YAML
27 lines
710 B
YAML
name: Build Docker Image for reNgine
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
WEB_IMAGE: docker.pkg.github.com/$GITHUB_REPOSITORY/reNgine
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build Docker Image for reNgine
|
|
if: github.ref == 'refs/heads/master'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout master
|
|
uses: actions/checkout@v1
|
|
- name: Log in to GitHub Packages
|
|
run: echo ${GITHUB_TOKEN} | docker login -u ${GITHUB_ACTOR} --password-stdin docker.pkg.github.com
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Build images
|
|
run: |
|
|
docker-compose -f docker-compose.yml build
|
|
- name: Push images
|
|
run: |
|
|
docker push ${{ env.WEB_IMAGE }}
|