Skip to content

Commit

Permalink
Moving repo from AnHeuermann to OpenModelica
Browse files Browse the repository at this point in the history
  - Updating CI
  - Bumping version
  • Loading branch information
AnHeuermann committed May 8, 2024
1 parent 1b61d01 commit 11ffa2f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 11ffa2f

Please sign in to comment.