From c2b8d27910fcd83a5b4f1e2c341a7c1719b29c28 Mon Sep 17 00:00:00 2001 From: Will Thames Date: Sun, 21 Jan 2024 14:17:29 +1000 Subject: [PATCH] Add publish github action and bump python version in Dockerfile --- .github/workflows/publish.yml | 19 +++++++++++++++++++ Dockerfile | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..680fcaaf --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: publish + +on: + push: + tags: + - 'v1.*' + - 'gh-action-test-*' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Build and push Docker image + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + with: + context: "{{defaultContext}}" + file: ./Dockerfile + push: true + tags: ghcr.io/${{github.repository}}:${{github.ref_name}} diff --git a/Dockerfile b/Dockerfile index a88bfcf8..b4b2ccce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.6-alpine3.7 +FROM python:3.12-alpine3.19 COPY . /python WORKDIR /python