Skip to content

Commit

Permalink
Migrate the release of tagged Docker images from Drone to GitHub Acti…
Browse files Browse the repository at this point in the history
…ons (#3520)
  • Loading branch information
vascoguita authored Dec 5, 2022
1 parent 5e088ec commit 2e3ca5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 84 deletions.
80 changes: 0 additions & 80 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -113,86 +113,6 @@ def release():
"note": "changelog/NOTE.md",
},
},
{
"name": "docker-reva-tag",
"pull": "always",
"image": "plugins/docker",
"settings": {
"repo": "cs3org/reva",
"tags": "${DRONE_TAG}",
"dockerfile": "Dockerfile.reva",
"username": {
"from_secret": "dockerhub_username",
},
"password": {
"from_secret": "dockerhub_password",
},
"custom_dns": [
"128.142.17.5",
"128.142.16.5",
],
},
},
{
"name": "docker-revad-tag",
"pull": "always",
"image": "plugins/docker",
"settings": {
"repo": "cs3org/revad",
"tags": "${DRONE_TAG}",
"dockerfile": "Dockerfile.revad",
"username": {
"from_secret": "dockerhub_username",
},
"password": {
"from_secret": "dockerhub_password",
},
"custom_dns": [
"128.142.17.5",
"128.142.16.5",
],
},
},
{
"name": "docker-revad-eos-tag",
"pull": "always",
"image": "plugins/docker",
"settings": {
"repo": "cs3org/revad",
"tags": "${DRONE_TAG}-eos",
"dockerfile": "Dockerfile.revad-eos",
"username": {
"from_secret": "dockerhub_username",
},
"password": {
"from_secret": "dockerhub_password",
},
"custom_dns": [
"128.142.17.5",
"128.142.16.5",
],
},
},
{
"name": "docker-revad-ceph-tag",
"pull": "always",
"image": "plugins/docker",
"settings": {
"repo": "cs3org/revad",
"tags": "${DRONE_TAG}-ceph",
"dockerfile": "Dockerfile.revad-ceph",
"username": {
"from_secret": "dockerhub_username",
},
"password": {
"from_secret": "dockerhub_password",
},
"custom_dns": [
"128.142.17.5",
"128.142.16.5",
],
},
},
],
}

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- "master"
tags:
- "*"
pull_request:
workflow_dispatch:

Expand All @@ -12,13 +14,13 @@ jobs:
strategy:
matrix:
include:
- tag: reva:latest
- tag: reva:${{ ((github.ref_type == 'tag') && github.ref_name) || 'latest' }}
file: Dockerfile.reva
- tag: revad:latest
- tag: revad:${{ ((github.ref_type == 'tag') && github.ref_name) || 'latest' }}
file: Dockerfile.revad
- tag: revad:latest-eos
- tag: revad:${{ ((github.ref_type == 'tag') && github.ref_name) || 'latest' }}-eos
file: Dockerfile.revad-eos
- tag: revad:latest-ceph
- tag: revad:${{ ((github.ref_type == 'tag') && github.ref_name) || 'latest' }}-ceph
file: Dockerfile.revad-ceph
steps:
- name: Checkout
Expand Down

0 comments on commit 2e3ca5d

Please sign in to comment.