-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
43 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: DockerHub | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- 'v*.*.*' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
IMAGE_NAME: index.docker.io/metacall/cli | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to DockerHub | ||
run: docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" -p "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | ||
|
||
- name: Push MetaCall CLI Docker Image to DockerHub | ||
run: | | ||
docker tag metacall/cli ${{ env.IMAGE_NAME }}:latest | ||
docker push ${{ env.IMAGE_NAME }}:latest | ||
if [[ "${{ contains(github.ref, 'refs/tags/') }}" = true ]]; then | ||
TAG=${GITHUB_REF#refs/*/} | ||
VERSION=${TAG#v} | ||
docker tag metacall/cli ${{ env.IMAGE_NAME }}:${VERSION} | ||
docker push ${{ env.IMAGE_NAME }}:${VERSION} | ||
fi | ||
- name: Logout from DockerHub | ||
run: docker logout |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# MetaCall CLI by Parra Studios | ||
# Porable Command Line Interface for MetaCall using Docker. | ||
# | ||
# Copyright (C) 2016 - 2020 Vicente Eduardo Ferrer Garcia <[email protected]> | ||
# Copyright (C) 2016 - 2024 Vicente Eduardo Ferrer Garcia <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -17,12 +17,6 @@ | |
# limitations under the License. | ||
# | ||
|
||
# Create a dependency with MetaCall Core Image in order to trigger Docker Hub builds | ||
FROM metacall/core AS dependency | ||
|
||
# TODO: This dependency must be from metacall/distributable | ||
# instead from the core, but it is not automated yet. | ||
|
||
# MetaCall CLI Image | ||
FROM alpine:latest | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,7 +186,7 @@ | |
same "printed page" as the copyright notice for easier | ||
identification within third-party archives. | ||
|
||
Copyright 2016-2020 Vicente Eduardo Ferrer Garcia <[email protected]> | ||
Copyright 2016-2024 Vicente Eduardo Ferrer Garcia <[email protected]> | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.