mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-18 15:57:44 +02:00
There's no key called schedule as per github workflow, so remomving it. `Unknown key schedule`
33 lines
802 B
YAML
33 lines
802 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 "::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: true
|
|
tag_with_ref: true
|
|
tag_with_sha: true
|
|
add_git_labels: true
|
|
|