Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoguita committed Jan 10, 2023
1 parent d9f5a3e commit 3b6ffd8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
file:
required: true
type: string
tag:
tags:
type: string
load:
type: boolean
Expand All @@ -26,17 +26,17 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build ${{ (inputs.push && 'and push') || '' }} ${{ inputs.tag }} Docker image
- name: Build ${{ (inputs.push && 'and push') || '' }} ${{ join(fromJSON(inputs.tags), ',') }}
uses: docker/build-push-action@v3
with:
context: .
file: ${{ inputs.file }}
tags: ${{ (inputs.push && format('{0}/', secrets.DOCKERHUB_ORGANIZATION)) || '' }}${{ inputs.tag }}
tags: ${{ (inputs.push && format('{0}/', secrets.DOCKERHUB_ORGANIZATION)) || '' }}${{ join(fromJSON(inputs.tags), format(',{0}/', secrets.DOCKERHUB_ORGANIZATION)) }}
load: ${{ inputs.load }}
push: ${{ inputs.push }}
- name: Upload ${{ inputs.tag }} Docker image to artifacts
- name: Upload ${{ inputs.tags }} to artifacts
uses: ishworkh/docker-image-artifact-upload@v1
if: ${{ inputs.load }}
with:
image: ${{ inputs.tag }}
image: ${{ inputs.tags }}
retention_days: '1'
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ jobs:
matrix:
include:
- image: reva
tag: reva:${{ github.ref_name }}
tags: reva:${{ github.ref_name }}
- image: revad
tag: revad:${{ github.ref_name }}
tags:
- revad:${{ github.ref_name }}
- latest
- image: revad-eos
tag: revad:${{ github.ref_name }}-eos
tags: revad:${{ github.ref_name }}-eos
- image: revad-ceph
tag: revad:${{ github.ref_name }}-ceph
tags: revad:${{ github.ref_name }}-ceph
uses: ./.github/workflows/docker.yml
secrets: inherit
with:
file: docker/Dockerfile.${{ matrix.image }}
tag: ${{ matrix.tag }}
tags: ${{ toJSON(matrix.tags) }}
push: true

0 comments on commit 3b6ffd8

Please sign in to comment.