From 0f33464654cc1e561ccc6a9652e15578ed4b76c7 Mon Sep 17 00:00:00 2001 From: Javier Garcia Ordonez Date: Wed, 28 Aug 2024 18:45:56 +0200 Subject: [PATCH] new GitHub actions only (in sync w new Makefile) --- dummy | 1 + .../.github/workflows/build-test-publish.yml | 53 ------------------- 2 files changed, 1 insertion(+), 53 deletions(-) create mode 160000 dummy delete mode 100644 {{cookiecutter.project_slug}}/.github/workflows/build-test-publish.yml diff --git a/dummy b/dummy new file mode 160000 index 00000000..6c986e5b --- /dev/null +++ b/dummy @@ -0,0 +1 @@ +Subproject commit 6c986e5bce50f0f5f8ae54edc5948c5e07823586 diff --git a/{{cookiecutter.project_slug}}/.github/workflows/build-test-publish.yml b/{{cookiecutter.project_slug}}/.github/workflows/build-test-publish.yml deleted file mode 100644 index 0187e6c2..00000000 --- a/{{cookiecutter.project_slug}}/.github/workflows/build-test-publish.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Github-CI Push/PR {{ cookiecutter.project_slug }} - -on: - push: - pull_request: - -env: - # secrets can be set in settings/secrets on github - DOCKER_REGISTRY: {{ "${{ secrets.DOCKER_REGISTRY }}" }} - DOCKER_USERNAME: {{ "${{ secrets.DOCKER_USERNAME }}" }} - DOCKER_PASSWORD: {{ "${{ secrets.DOCKER_PASSWORD }}" }} - -jobs: - build: - name: building {{ cookiecutter.project_slug }} - runs-on: {{ "${{ matrix.os }}" }} - strategy: - matrix: - python: [3.9] - os: [ubuntu-22.04] - fail-fast: false - steps: - - uses: actions/checkout@v3 - - name: setup python environment - uses: actions/setup-python@v4 - with: - python-version: {{ "${{ matrix.python }}" }} - - name: show versions - run: ./.github/show_system_versions.bash - - name: set owner variable - run: echo "OWNER=${GITHUB_REPOSITORY%/*}" >> $GITHUB_ENV - - name: set docker image tag - if: github.ref != 'refs/heads/master' - run: echo "DOCKER_IMAGE_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV - - name: get current image if available - run: make pull-latest || true - - name: build - run: | - make VERSION - make build - make info-build - - name: test - run: make tests - # - if: github.event_name == 'push' && github.ref == 'refs/heads/master' - # name: push - # run: | - # ./.github/dockerhub_login.bash - # make push - # - if: github.event_name == 'push' && github.ref != 'refs/heads/master' - # name: push - # run: | - # ./.github/dockerhub_login.bash - # make push-version