Skip to content

Commit 114a8b8

Browse files
authored
Merge pull request #1 from CentML/gflarity/use_github_repo
use github docker repo instead
2 parents fa9308c + 4d69afd commit 114a8b8

File tree

1 file changed

+47
-63
lines changed

1 file changed

+47
-63
lines changed

.github/workflows/release.yml

Lines changed: 47 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,52 @@
11
name: ci
22

33
on:
4-
push:
5-
branches:
6-
- "main"
7-
create:
8-
tags:
9-
- "v*"
10-
pull_request:
11-
branches:
12-
- "main"
13-
workflow_dispatch:
4+
push:
5+
branches:
6+
- "forked-main"
7+
tags:
8+
- "v*-centml"
9+
pull_request:
10+
branches:
11+
- "forked-main"
12+
workflow_dispatch:
1413

1514
jobs:
16-
docker:
17-
runs-on: ubuntu-latest
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v2
21-
- name: Docker meta
22-
id: meta
23-
uses: docker/metadata-action@v3
24-
with:
25-
# list of Docker images to use as base name for tags
26-
images: |
27-
adyanth/cloudflare-operator
28-
ghcr.io/adyanth/cloudflare-operator
29-
# generate Docker tags based on the following events/attributes
30-
tags: |
31-
type=ref,event=branch
32-
type=ref,event=pr
33-
type=semver,pattern={{version}}
34-
type=semver,pattern={{major}}.{{minor}}
35-
type=semver,pattern={{major}}
36-
type=sha
37-
- name: Set up QEMU
38-
uses: docker/setup-qemu-action@v1
39-
- name: Set up Docker Buildx
40-
uses: docker/setup-buildx-action@v1
41-
- name: Login to DockerHub
42-
uses: docker/login-action@v1
43-
with:
44-
username: ${{ secrets.DOCKERHUB_USERNAME }}
45-
password: ${{ secrets.DOCKERHUB_TOKEN }}
46-
- name: Login to GitHub Container Registry
47-
uses: docker/login-action@v1
48-
with:
49-
registry: ghcr.io
50-
username: ${{ github.repository_owner }}
51-
password: ${{ secrets.GITHUB_TOKEN }}
52-
- name: Build and push
53-
uses: docker/build-push-action@v2
54-
with:
55-
context: .
56-
platforms: ${{ github.event.ref_type == 'tag' && 'linux/amd64,linux/arm,linux/arm64' || 'linux/amd64' }}
57-
push: true
58-
tags: ${{ steps.meta.outputs.tags }}
59-
labels: ${{ steps.meta.outputs.labels }}
60-
- name: Docker Hub Description
61-
if: github.event.ref_type == 'tag' || github.event_name == 'workflow_dispatch'
62-
uses: peter-evans/dockerhub-description@v3
63-
with:
64-
username: ${{ secrets.DOCKERHUB_USERNAME }}
65-
password: ${{ secrets.DOCKERHUB_TOKEN }}
66-
repository: adyanth/cloudflare-operator
67-
readme-filepath: ./README.md
68-
short-description: "Cloudflare Operator Controller Manager"
15+
docker:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Docker meta
21+
id: meta
22+
uses: docker/metadata-action@v3
23+
with:
24+
# list of Docker images to use as base name for tags
25+
images: |
26+
ghcr.io/centml/cloudflare-operator
27+
# generate Docker tags based on the following events/attributes
28+
tags: |
29+
type=ref,event=branch
30+
type=ref,event=pr
31+
type=semver,pattern={{version}}
32+
type=semver,pattern={{major}}.{{minor}}
33+
type=semver,pattern={{major}}
34+
type=sha
35+
- name: Set up QEMU
36+
uses: docker/setup-qemu-action@v1
37+
- name: Set up Docker Buildx
38+
uses: docker/setup-buildx-action@v1
39+
- name: Login to GitHub Container Registry
40+
uses: docker/login-action@v1
41+
with:
42+
registry: ghcr.io
43+
username: ${{ github.repository_owner }}
44+
password: ${{ secrets.GITHUB_TOKEN }}
45+
- name: Build and push
46+
uses: docker/build-push-action@v2
47+
with:
48+
context: .
49+
platforms: linux/amd64,linux/arm64
50+
push: true
51+
tags: ${{ steps.meta.outputs.tags }}
52+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)