Skip to content

Commit

Permalink
Updating CI, bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann committed May 8, 2024
1 parent 33e3ee9 commit 723b1de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 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: openmodelica/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
8 changes: 4 additions & 4 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: 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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

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.4
export TAG=v1.16.5
docker build --pull --no-cache --tag build-deps:$TAG .
```

Expand All @@ -24,7 +24,7 @@ Otherwise run:

```bash
export REGISTRY=openmodelica
export TAG=v1.16.4
export TAG=v1.16.5
docker login
docker image tag build-deps:$TAG $REGISTRY/build-deps:$TAG
docker push $REGISTRY/build-deps:$TAG
Expand Down

0 comments on commit 723b1de

Please sign in to comment.