A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cloudflare/cfssl/commit/b37103e9542a298ff32511a73298216a5e5c856e below:

Add support to multi architecture docker image using a github action · cloudflare/cfssl@b37103e · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+48

-4

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+48

-4

lines changed Original file line number Diff line number Diff line change

@@ -0,0 +1,42 @@

1 +

name: Build and publish cfssl docker image

2 + 3 +

on:

4 +

push:

5 +

tags:

6 +

- 'v*.*.*'

7 + 8 +

jobs:

9 +

build-and-push-image:

10 +

runs-on: ubuntu-latest

11 +

permissions:

12 +

contents: read

13 +

packages: write

14 +

steps:

15 +

- name: Checkout repository

16 +

uses: actions/checkout@v3

17 +

with:

18 +

fetch-depth: 0

19 + 20 +

- name: Get tag

21 +

id: cfssl

22 +

run: echo "::set-output name=tag::$(git describe --tags HEAD)"

23 + 24 +

- name: Set up QEMU

25 +

uses: docker/setup-qemu-action@v2

26 + 27 +

- name: Set up Docker Buildx

28 +

uses: docker/setup-buildx-action@v2

29 + 30 +

- name: Log in to the Docker hub

31 +

uses: docker/login-action@v2

32 +

with:

33 +

username: ${{ secrets.DOCKERHUB_USERNAME }}

34 +

password: ${{ secrets.DOCKERHUB_TOKEN }}

35 + 36 +

- name: Build and push

37 +

uses: docker/build-push-action@v3

38 +

with:

39 +

context: .

40 +

platforms: linux/amd64,linux/arm64,linux/s390x

41 +

push: true

42 +

tags: cfssl:${{ steps.cfssl.outputs.tag }}

Original file line number Diff line number Diff line change

@@ -1,11 +1,13 @@

1 -

FROM golang:1.16.15@sha256:35fa3cfd4ec01a520f6986535d8f70a5eeef2d40fb8019ff626da24989bdd4f1

1 +

FROM --platform=${BUILDPLATFORM} golang:1.19.3@sha256:d388153691a825844ebb3586dd04d1c60a2215522cc445701424205dffc8a83e

2 + 3 +

ARG TARGETOS TARGETARCH

2 4 3 5

WORKDIR /workdir

4 6

COPY . /workdir

5 7 6 8

RUN git clone https://github.com/cloudflare/cfssl_trust.git /etc/cfssl && \

7 9

make clean && \

8 -

make all && cp bin/* /usr/bin/

10 +

GOOS=${TARGETOS} GOARCH=${TARGETARCH} make all && cp bin/* /usr/bin/

9 11 10 12

EXPOSE 8888

11 13 Original file line number Diff line number Diff line change

@@ -9,7 +9,7 @@ all: bin/cfssl bin/cfssl-bundle bin/cfssl-certinfo bin/cfssl-newkey bin/cfssl-sc

9 9 10 10

bin/%: $(shell find . -type f -name '*.go')

11 11

@mkdir -p $(dir $@)

12 -

go build -ldflags $(LDFLAGS) -o $@ ./cmd/$(@F)

12 +

GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -ldflags $(LDFLAGS) -o $@ ./cmd/$(@F)

13 13 14 14

.PHONY: install

15 15

install: install-cfssl install-cfssl-bundle install-cfssl-certinfo install-cfssl-newkey install-cfssl-scan install-cfssljson install-mkbundle install-multirootca

@@ -25,7 +25,7 @@ serve:

25 25 26 26

bin/goose: $(shell find vendor -type f -name '*.go')

27 27

@mkdir -p $(dir $@)

28 -

go build -o $@ ./vendor/bitbucket.org/liamstask/goose/cmd/goose

28 +

GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -o $@ ./vendor/bitbucket.org/liamstask/goose/cmd/goose

29 29 30 30

.PHONY: clean

31 31

clean:

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4