Skip to content

Merge pull request #2810 from rsksmart/scorecard #240

Merge pull request #2810 from rsksmart/scorecard

Merge pull request #2810 from rsksmart/scorecard #240

Workflow file for this run

name: Docker image
on:
push:
branches:
- master
tags:
- '*'
# Declare default permissions as read only.
permissions: read-all
jobs:
docker:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 #v4.2.1
- name: Docker meta
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 #v5.5.1
with:
images: rsksmart/rskj
tags: |
type=ref,event=branch
type=ref,event=tag
type=edge
# This is used for generating IRIS-3 out of IRIS-3.x.y.
type=match,pattern=(\w+-\d+)\.\d+\.\d+.*,group=1
- name: DockerHub login
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 #v6.9.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}