Files
rengine/.github/workflows/build-pr.yml
T
2020-07-25 16:22:36 +05:30

29 lines
739 B
YAML

name: Build Docker image for pull request
on:
pull_request:
branches: [ master, stable, dev ]
env:
IMAGE_NAME: rengine
jobs:
build:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout the git repo
uses: actions/checkout@v2
- name: Set Docker image name
run: echo "::set-env name=IMAGE_ID::$(echo -n '${{ github.repository }}/${{ env.IMAGE_NAME }}' | tr '[:upper:]' '[:lower:]')"
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ github.token }}
registry: docker.pkg.github.com
repository: ${{ env.IMAGE_ID }}
push: false