Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/montana/travis-harpoon
Harpoon (https://harpoon.io/) test with Travis CI pushing via Docker.
https://github.com/montana/travis-harpoon
Last synced: about 6 hours ago
JSON representation
Harpoon (https://harpoon.io/) test with Travis CI pushing via Docker.
- Host: GitHub
- URL: https://github.com/montana/travis-harpoon
- Owner: Montana
- Created: 2024-09-09T18:49:09.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-10T11:20:28.000Z (4 months ago)
- Last Synced: 2025-01-02T21:38:48.100Z (8 days ago)
- Language: JavaScript
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://app.travis-ci.com/Montana/travis-harpoon.svg?token=U865GtC2ptqX3Ezf3Fzb&branch=master)](https://app.travis-ci.com/Montana/travis-harpoon)
# Travis CI with Harpoon
This demonstrates how Travis CI works with Harpoon. (https://www.harpoon.io/).## Usage
Get all your API keys. Specifically from Docker/Harpoon. You'll want these lines in your `.travis.yml`:
```yaml
- echo "$HARPOON_API_TOKEN" | docker login https://registry.harpooncorp.com -u montana --password-stdin
- docker build --platform linux/amd64 -t harpoondemo .
```Make sure in the Travis CI GUI you label the Harpoon API `HARPOON_API_TOKEN`. Make sure where my Harpoon username `montana` is, it's your username. Then where it says `harpoondemo` have it your own project name.
## My config file
This is my `.travis.yml`:
```yaml
language: generic
dist: focalcache:
directories:
- $HOME/.dockerbefore_install:
- sudo apt-get update
- uname -rscript:
- echo "$HARPOON_API_TOKEN" | docker login https://registry.harpooncorp.com -u montana --password-stdin
- docker build --platform linux/amd64 -t harpoondemo .
- docker tag harpoondemo:latest registry.harpooncorp.com/montana/harpoondemo:latest
- docker push registry.harpooncorp.com/montana/harpoondemo:latestbranches:
only:
- master
```
Once you see a successful push, go to Harpoon, and you can search for the image in the harpoon registry and drag it onto the graph.## Harpoon
Just go to the dropdown on the left-hand side, select "Harpoon," and then search. You should see your project, then drag and drop it to the stages screen, it should look like this:
That's it. You've used Travis CI with Harpoon.## Author
>Michael Mendy. September, 2024.