Skip to content

Commit e934fdd

Browse files
authored
Merge pull request #5 from meshcloud/CU-85zrruq0d_resolve-dependency-of-hubdockercom
Cu 85zrruq0d resolve dependency of hubdockercom
2 parents 92f56fa + c8d9097 commit e934fdd

File tree

4 files changed

+65
-3
lines changed

4 files changed

+65
-3
lines changed

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build
2+
3+
# Workflow trigger Event
4+
on:
5+
push:
6+
# Publish semver tags as releases.
7+
tags: ['v*.*.*']
8+
pull_request:
9+
branches: [master]
10+
11+
env:
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: ${{ github.repository }}
14+
15+
jobs:
16+
build:
17+
name: Push Docker image to GitHub Container Registry
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
packages: write
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
26+
27+
- name: Setup Docker buildx
28+
uses: docker/setup-buildx-action@v2
29+
30+
# Login against a Docker registry except on PR
31+
# https://github.com/docker/login-action
32+
- name: Log into registry ${{ env.REGISTRY }}
33+
if: github.event_name != 'pull_request'
34+
uses: docker/login-action@v2
35+
with:
36+
registry: ${{ env.REGISTRY }}
37+
username: ${{ github.actor }}
38+
password: ${{ secrets.GITHUB_TOKEN }}
39+
40+
# Extract metadata (tags, labels) for Docker
41+
# https://github.com/docker/metadata-action
42+
- name: Extract Docker metadata
43+
id: meta
44+
uses: docker/metadata-action@v4
45+
with:
46+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
47+
48+
# Build and push Docker image with Buildx (don't push on PR)
49+
# https://github.com/docker/build-push-action
50+
- name: Build and push Docker image
51+
id: build-and-push
52+
uses: docker/build-push-action@v4
53+
with:
54+
context: .
55+
push: ${{ github.event_name != 'pull_request' }}
56+
tags: ${{ steps.meta.outputs.tags }}
57+
labels: ${{ steps.meta.outputs.labels }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Release Notes
2+
## 2.0.0
3+
4+
- no changes on the code itself. We now publish the container on ghcr instead of docker hub.
5+
- We move out of beta, we've been running 2.0 without changes in production
26

37
## 2.0.0-beta1
48

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
user=meshcloud
22
name=gate-resource
33
image=$(user)/$(name)
4-
tag=2.0.0-beta1
4+
tag=$(shell git log --format="%h" -n 1)
55

66
docker=docker
77
dockerfile = Dockerfile

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# gate-resource
22

3-
[![Build Status](https://img.shields.io/docker/build/meshcloud/gate-resource.svg)](https://hub.docker.com/r/meshcloud/gate-resource/)
4-
[![Docker Pulls](https://img.shields.io/docker/pulls/meshcloud/gate-resource.svg?maxAge=2592000)](https://hub.docker.com/r/meshcloud/gate-resource/)
3+
[![Build](https://github.com/meshcloud/gate-resource/actions/workflows/release.yml/badge.svg)](https://github.com/meshcloud/gate-resource/actions/workflows/release.yml)
54

65
A generic gate resource for Concourse CI.
76

87
Allows you to model quality gates and pipeline control flow.
98

109
This resource is backed by a Git repository and wraps [git-resource](https://github.com/concourse/git-resource).
1110

11+
A public container build of this repo is available at ghcr.io [meshcloud/gate-resource](https://github.com/meshcloud/gate-resource/pkgs/container/gate-resource).
12+
1213
> Contributors Welcome: This resource is new and hot off the press. We welcome your feedback and contributions!
1314
1415
## Example

0 commit comments

Comments
 (0)