From 11ffa2f90d509c7a14f9ab29c2d1a0e65fbc5f08 Mon Sep 17 00:00:00 2001 From: AnHeuermann <38031952+AnHeuermann@users.noreply.github.com> Date: Wed, 8 May 2024 16:33:57 +0200 Subject: [PATCH] Moving repo from AnHeuermann to OpenModelica - Updating CI - Bumping version --- .github/workflows/build.yml | 10 +++++----- .github/workflows/publish.yml | 12 ++++++------ README.md | 16 +++++++++------- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d472642..76e8ecf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,21 +12,21 @@ on: jobs: build: - name: Push Docker image to Docker Hub + name: Build Dockerfile runs-on: ubuntu-latest timeout-minutes: 60 steps: - name: Check out the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + uses: docker/metadata-action@v5 with: - images: anheuermann/openmodelica-build-deps + images: openmodelica/build-deps - name: Build Docker image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fc9d9e5..9e0897c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,22 +11,22 @@ jobs: timeout-minutes: 60 steps: - name: Check out the repo - uses: actions/checkout@v3 - + uses: actions/checkout@v4 + - name: Log in to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: - images: anheuermann/openmodelica-build-deps + images: openmodelica/build-deps - name: Build and push Docker image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile diff --git a/README.md b/README.md index 5173991..c1e6467 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,33 @@ # OpenModelica build-deps Docker Image -[![Build v1.16-cmake](https://github.com/AnHeuermann/build-deps/actions/workflows/build.yml/badge.svg?branch=releases%2Fv1.16-cmake)](https://github.com/AnHeuermann/build-deps/actions/workflows/build.yml) +[![Build v1.16](https://github.com/OpenModelica/build-deps/actions/workflows/build.yml/badge.svg?branch=releases%2Fv1.16)](https://github.com/OpenModelica/build-deps/actions/workflows/build.yml) +[![Publish v1.16](https://github.com/OpenModelica/build-deps/actions/workflows/publish.yml/badge.svg?branch=releases%2Fv1.16)](https://github.com/OpenModelica/build-deps/actions/workflows/publish.yml) The Docker image used to build and deploy [OpenModelica](https://github.com/OpenModelica/OpenModelica) with -Jenkins[https://test.openmodelica.org/jenkins/]. +[Jenkins](https://test.openmodelica.org/jenkins/). ## Build ```bash -export TAG=v1.16.3-cmake +export TAG=v1.16.5-cmake docker build --pull --no-cache --tag build-deps:$TAG . ``` ## Upload The [publish.yml](./.github/workflows/publish.yml) workflow will build and upload the -Docker image to [https://hub.docker.com/repository/docker/anheuermann/openmodelica-build-deps](anheuermann/openmodelica-build-deps) +Docker image to [https://hub.docker.com/repository/docker/openmodelica/build-deps](openmodelica/build-deps) for each release. Otherwise run: ```bash -export REGISTRY=anheuermann -export TAG=v1.16.3-cmake +export REGISTRY=openmodelica +export TAG=v1.16.5-cmake docker login -docker image tag build-deps:$(VERSION) $(REGISTRY)/build-deps:$TAG +docker image tag build-deps:$TAG $REGISTRY/build-deps:$TAG +docker push $REGISTRY/build-deps:$TAG ``` ## License