From ebd875841af3ebce4e7a2ce61c5886b16400f301 Mon Sep 17 00:00:00 2001 From: Charles Leifer Date: Fri, 22 Nov 2024 07:27:23 -0600 Subject: [PATCH] See what happens when we build container --- .github/workflows/build_latest_container.yml | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build_latest_container.yml diff --git a/.github/workflows/build_latest_container.yml b/.github/workflows/build_latest_container.yml new file mode 100644 index 00000000..671d765a --- /dev/null +++ b/.github/workflows/build_latest_container.yml @@ -0,0 +1,22 @@ +name: Build latest Container +on: + push: + branches: + - master +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:latest . + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{github.actor}} + password: ${{secrets.GITHUB_TOKEN}} + - name: Upload latest container to registry + run: docker push ghcr.io/coleifer/sqlite-web:latest