From 5dfbfae0cc07c56d686bc4d03d2340c58eaf5296 Mon Sep 17 00:00:00 2001 From: "fynn.sp" Date: Mon, 17 May 2021 14:57:53 +0200 Subject: [PATCH 1/5] Checkout Dockerfile from dif repo and build docker img Signed-off-by: fynn.sp --- .github/workflows/publish.yaml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000000..7c8ec74dae --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,35 @@ +--- +name: Publish + +"on": + workflow_dispatch: + push: + branches: + - master + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + repository: getgrav/docker-grav + + - name: Setup docker + uses: docker/setup-buildx-action@v1 + + - name: Login to docker registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish image + uses: docker/build-push-action@v2 + with: + push: true + tags: | + ghcr.io/23technologies/grav:latest From ebc719045e1e3c996d9d710261786eeef10f8af0 Mon Sep 17 00:00:00 2001 From: "fynn.sp" Date: Mon, 17 May 2021 15:10:27 +0200 Subject: [PATCH 2/5] Fix Action Signed-off-by: fynn.sp --- .github/workflows/publish.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7c8ec74dae..ff4e03fd50 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -31,5 +31,6 @@ jobs: uses: docker/build-push-action@v2 with: push: true + context: . tags: | ghcr.io/23technologies/grav:latest From cf2d819b6e9b9645861aee933798a6aab5a46a7e Mon Sep 17 00:00:00 2001 From: "fynn.sp" Date: Mon, 17 May 2021 15:15:12 +0200 Subject: [PATCH 3/5] Fix Action Signed-off-by: fynn.sp --- .github/workflows/publish.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index ff4e03fd50..8bf763bce0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -12,11 +12,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - repository: getgrav/docker-grav - - name: Setup docker uses: docker/setup-buildx-action@v1 From 67374b12975ef8d9e9408e6f06519965e6645631 Mon Sep 17 00:00:00 2001 From: "fynn.sp" Date: Mon, 17 May 2021 15:23:24 +0200 Subject: [PATCH 4/5] Fix Action Signed-off-by: fynn.sp --- .github/workflows/publish.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8bf763bce0..ff4e03fd50 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -12,6 +12,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + repository: getgrav/docker-grav + - name: Setup docker uses: docker/setup-buildx-action@v1 From 5183a77f8a24f68cab18eea85b9c5903fbcd9255 Mon Sep 17 00:00:00 2001 From: "fynn.sp" Date: Mon, 17 May 2021 15:25:34 +0200 Subject: [PATCH 5/5] Fix Action Signed-off-by: fynn.sp --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index ff4e03fd50..3a23030e35 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -33,4 +33,4 @@ jobs: push: true context: . tags: | - ghcr.io/23technologies/grav:latest + ghcr.io/${{ github.repository_owner }}/grav:latest