From 18d0c8a09a2d5c81de24ef4d7433259ffaf90040 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Sat, 16 Nov 2024 22:59:10 +0100 Subject: [PATCH] Add stable build --- .../workflows/{docker.yml => docker-dev.yml} | 2 +- .github/workflows/docker-master.yml | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) rename .github/workflows/{docker.yml => docker-dev.yml} (97%) create mode 100644 .github/workflows/docker-master.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker-dev.yml similarity index 97% rename from .github/workflows/docker.yml rename to .github/workflows/docker-dev.yml index 7562cdce..b24a04ce 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker-dev.yml @@ -1,4 +1,4 @@ -name: Docker +name: Docker Latest on: push: branches: [ dev ] diff --git a/.github/workflows/docker-master.yml b/.github/workflows/docker-master.yml new file mode 100644 index 00000000..2ae341d7 --- /dev/null +++ b/.github/workflows/docker-master.yml @@ -0,0 +1,33 @@ +name: Docker Stable +on: + push: + branches: [ master ] +jobs: + linux: + if: ${{ !contains(github.event.head_commit.message, '[skip.all]') }} + runs-on: self-hosted + timeout-minutes: 60 + steps: + - name: Clone + uses: actions/checkout@v4 + - name: Login Docker + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login GitHub + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Buildx + uses: docker/setup-buildx-action@v3 + - name: Build + uses: docker/build-push-action@v6 + with: + context: . + file: ./Script/Rocky.Dockerfile + push: true + tags: | + tlcfem/suanpan:stable