Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust docker image workflow, remove irrelavant ones #2

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.