From e1fa210b0ef2e9f9c5d2f842505ae51a94c1a337 Mon Sep 17 00:00:00 2001 From: Alexander Pavlenko Date: Sat, 23 Jan 2021 19:28:15 +0300 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9b4b29f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: build +on: + push: + branches: + - master +jobs: + build: + if: > + !contains(github.event.head_commit.message, '#skip-ci') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Build and push to Registry + uses: elgohr/Publish-Docker-Github-Action@master + with: + name: ${{ github.event.repository.full_name }}/${{ github.event.repository.name }} + username: ${{ github.actor }} + password: ${{ github.token }} + registry: docker.pkg.github.com + tag_names: true + cache: ${{ !contains(github.event.head_commit.message, '#no-cache') }}