Skip to content

Commit

Permalink
Merge pull request #57 from inverse/ci-changes
Browse files Browse the repository at this point in the history
Release Pipeline
  • Loading branch information
josegonzalez authored May 1, 2021
2 parents b52f00a + edf76de commit d995791
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
---
name: build

on: [push, pull_request]


jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: 1.15
- name: Checkout repository
uses: actions/checkout@v2
- name: Build
run: make -j dist
- name: Test
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: 1.15
- name: Checkout repository
uses: actions/checkout@v2
- name: Build
run: make -j dist
- name: Test
run: go test -timeout=600s -v
- name: Upload release assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/docker-mirror-linux-amd64
tag: ${{ github.ref }}
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
# docker-mirror

[![build](https://github.com/seatgeek/docker-mirror/actions/workflows/build.yml/badge.svg)](https://github.com/seatgeek/docker-mirror/actions/workflows/build.yml)

This project will copy public DockerHub repositories to a private registry.

It's possible to filter by docker tags, tag age and number of latest tags.

<!-- TOC -->

- [docker-mirror](#docker-mirror)
- [Install / Building](#install-building)
- [Using](#using)
- [Adding new mirror repository](#adding-new-mirror-repository)
- [Updating / resync an existing repository](#updating-resync-an-existing-repository)
- [Update all repositories](#update-all-repositories)
- [Example config.yaml](#example-configyaml)
- [Install / Building](#install--building)
- [Using](#using)
- [Adding new mirror repository](#adding-new-mirror-repository)
- [Updating / resync an existing repository](#updating--resync-an-existing-repository)
- [Update all repositories](#update-all-repositories)
- [Example config.yaml](#example-configyaml)
- [Environment Variables](#environment-variables)

<!-- /TOC -->

Expand Down

0 comments on commit d995791

Please sign in to comment.