Skip to content

Commit

Permalink
fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
vladae36 committed Feb 21, 2024
1 parent 44ccdc8 commit cf94ef0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
on:
push:
branches-ignore:
#- 'main' # ** matches every branch
- 'feature/*'
on: [push, pull_request]
jobs:
push_to_dockerhub:
name: build image and push to dockerhub
Expand All @@ -11,25 +7,26 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Bootstrap - neeed by LibeuFin to inititalize the sub-repositories
run: ./bootstrap

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@v3
with:
images: e36io/LibEuFin


- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ util/src/main/resources/version.txt
.gitconfig
*/spx/*
spx
.vscode
.vscode
*/bin/
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM zenika/kotlin:1.4.20-M2-jdk11-slim as build

#
# IMPORTANT - you need to call ./bootstrap in order to inititalize the sub-repo of Libeufin
# Ohterwise the build will fail with
# failed to solve: failed to compute cache key: failed to calculate checksum ..."/build-system/taler-build-scripts/configure": not found
#

RUN apt update
# needed for nexus/sandbox
RUN apt install -y python3 python3-pip git
Expand Down

0 comments on commit cf94ef0

Please sign in to comment.