Skip to content

Commit

Permalink
Adjust workflows, remove irrelavant ones
Browse files Browse the repository at this point in the history
  • Loading branch information
vilaug committed Apr 24, 2024
1 parent 7dfe571 commit e28ef81
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 190 deletions.
31 changes: 0 additions & 31 deletions .github/dependabot.yml

This file was deleted.

53 changes: 21 additions & 32 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ on:
branches:
- master

env:
image_registry: europe-west4-docker.pkg.dev/ivido-development

jobs:
docker:
build-push:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Set version params
id: version
Expand All @@ -34,41 +41,23 @@ jobs:
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v4
with:
images: nutsfoundation/nuts-node
tags: |
# generate 'master' tag for the master branch
type=ref,event=branch,enable={{is_default_branch}},prefix=
# generate v5.2.1 tag
type=semver,pattern={{version}}
# generate v5 tag
type=semver,pattern={{major}}
flavor: |
latest=auto
prefix=v,onlatest=false
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
- name: Login to image registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: europe-west4-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCP_KEY }}

- name: Build and push
uses: docker/build-push-action@v4
- name: Build and push to registry
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
tags: |
${{ env.image_registry }}/formelio/nuts-node:${{ steps.version.outputs.git_version }}
cache-from: type=registry,ref=${{ inputs.image_registry }}/formelio/nuts-node:latest-cache
cache-to: type=registry,ref=${{ inputs.image_registry }}/formelio/nuts-node:latest-cache,mode=max
build-args: |
GIT_VERSION=${{ steps.version.outputs.git_version }}
GIT_COMMIT=${{ steps.version.outputs.git_commit }}
Expand Down
94 changes: 0 additions & 94 deletions .github/workflows/e2e-tests.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/helm-chart-release.yaml

This file was deleted.

0 comments on commit e28ef81

Please sign in to comment.