-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add docker github action * run versioning plugin in dockerfile - add dockerignore * fix action syntax * fix action syntax * fix action syntax * fix actions syntax * fix actions syntax * fix docker versioning * tag image with version tag * fix workflow syntax? * fix workflow syntax? * fix workflow syntax? * change buildkit version for compatibility with broken docker on hpg1002 * downgrade moby iamge * fix image reference * try ubuntu 20.04 * disable pip progress bar * bump buildkit version * Update .github/workflows/docker.yaml Co-authored-by: Fridolin Glatter <[email protected]> * Update Dockerfile Co-authored-by: Fridolin Glatter <[email protected]> * update lock file --------- Co-authored-by: Fridolin Glatter <[email protected]>
- Loading branch information
1 parent
bff2c8c
commit 4b33dc6
Showing
4 changed files
with
317 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/tests/test-data | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: docker | ||
|
||
on: | ||
push: | ||
tags: ["v*"] | ||
release: | ||
types: ["published"] | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: latest | ||
driver-opts: "image=moby/buildkit:v0.10.5" | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ene-docker.iiasa.ac.at | ||
username: ixmp-server-workflow-build-user | ||
password: ${{ secrets.NEXUS_PASSWORD }} | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Write release version | ||
run: | | ||
VERSION_TAG=${GITHUB_REF_NAME#v} | ||
echo Docker Image Version: $VERSION_TAG | ||
echo "VERSION_TAG=$VERSION_TAG" >> $GITHUB_ENV | ||
- if: github.event_name == 'release' | ||
name: Build and push latest | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
build-args: | | ||
POETRY_OPTS=--with server | ||
tags: ene-docker.iiasa.ac.at/ixmp4-server:latest,ene-docker.iiasa.ac.at/ixmp4-server:${{env.VERSION_TAG}} | ||
- if: github.event_name != 'release' | ||
name: Build and push dev | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
build-args: | | ||
POETRY_OPTS=--with server | ||
tags: ene-docker.iiasa.ac.at/ixmp4-server:dev,ene-docker.iiasa.ac.at/ixmp4-server:${{env.VERSION_TAG}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.