From 005bba1d2dc26cc03417bede8a6f0e474ef5dc41 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Wed, 15 Mar 2023 19:37:55 +0100 Subject: [PATCH 1/4] draft workflow --- .github/workflows/ci.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..2b5981f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,37 @@ +name: ci + +on: + push: + branches: + - ghcr + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v4 + with: + context: builder-base + platforms: linux/amd64,linux/arm64 + push: true + tags: | + yolean/builder-base:latest + yolean/builder-base:${{ github.event.ref }} From 31e1f5818d8aafa95f297ccf29357bc47d36f999 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Wed, 15 Mar 2023 19:40:11 +0100 Subject: [PATCH 2/4] ref was a branch ref --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2b5981f..db25940 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,4 +34,4 @@ jobs: push: true tags: | yolean/builder-base:latest - yolean/builder-base:${{ github.event.ref }} + yolean/builder-base:${{ github.sha }} From 8ad757e1cd5cdf4d95efb919f3a539d5ed05d3ae Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Wed, 15 Mar 2023 19:44:15 +0100 Subject: [PATCH 3/4] specifies registry --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index db25940..e392d26 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,5 +33,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - yolean/builder-base:latest - yolean/builder-base:${{ github.sha }} + ghcr.io/yolean/builder-base:latest + ghcr.io/yolean/builder-base:${{ github.sha }} From 9d24e35ba598843f9c394fa3f19480e4d1e43667 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Thu, 16 Mar 2023 06:30:33 +0100 Subject: [PATCH 4/4] Disable, not feature complete --- .github/workflows/ci.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e392d26..ee2a67e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,9 +1,12 @@ name: ci -on: - push: - branches: - - ghcr +# Found no convenient way to configure public access +# on: +# push: +# branches: +# - ghcr + +# Note: below was a test, does not support our nonroot append that ./hooks/build does jobs: docker: