Files
rengine/.github/workflows/build-pr.yml
T

30 lines
750 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 "IMAGE_ID=$(echo -n '${{ github.repository }}/${{ env.IMAGE_NAME }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- 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