From c74c8bf0feb454c0c612140be67f5dc7b953371d Mon Sep 17 00:00:00 2001 From: Fmar Date: Fri, 27 Sep 2024 11:43:01 +0200 Subject: [PATCH] add docker build GH workflow --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..a495ee2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Docker build & push +on: + push: + release: + types: [published] +jobs: + build: + env: + REGISTRY: ghcr.io + IMAGENAME: ${{ github.event.repository.name }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + name: Check out code + - name: Docker build + uses: mr-smithers-excellent/docker-build-push@v5 + id: build + with: + image: ${{ env.IMAGENAME }} + registry: ${{ env.REGISTRY }} + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file