From e67e9f63fd5a96554c2efbd31d79a074164d3030 Mon Sep 17 00:00:00 2001 From: Charles Leifer Date: Fri, 22 Nov 2024 07:30:56 -0600 Subject: [PATCH] Add build script for release. Thank you very much to @ThoFrank for these patches. --- .github/workflows/build_release_container.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build_release_container.yml diff --git a/.github/workflows/build_release_container.yml b/.github/workflows/build_release_container.yml new file mode 100644 index 00000000..356c89ce --- /dev/null +++ b/.github/workflows/build_release_container.yml @@ -0,0 +1,22 @@ +name: Build Release Container +on: + push: + tags: + - '*' +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build image + run: | + cd docker + docker build -t ghcr.io/coleifer/sqlite-web:${{ github.ref_name }} . + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{github.actor}} + password: ${{secrets.GITHUB_TOKEN}} + - name: Upload versioned container to registry + run: docker push ghcr.io/coleifer/sqlite-web:${{ github.ref_name }}