mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-17 23:37:47 +02:00
34 lines
813 B
YAML
34 lines
813 B
YAML
name: Build and publish Docker image
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
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: true
|
|
tag_with_ref: true
|
|
tag_with_sha: true
|
|
add_git_labels: true
|
|
|