A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/orgrim/pg_back/commit/cddabc20000fadd5bfc1c3e40648bd2cd7cf6f30 below:

Add Docker build action · orgrim/pg_back@cddabc2 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+68

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+68

-0

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

@@ -0,0 +1,68 @@

1 +

name: Docker

2 + 3 +

on:

4 +

push:

5 +

branches: [ "master" ]

6 +

tags:

7 +

- v*

8 +

pull_request:

9 +

branches: [ "master" ]

10 +

release:

11 +

types: [ "published" ]

12 +

workflow_dispatch:

13 + 14 +

env:

15 +

IMAGE_NAME: pg_back

16 + 17 +

jobs:

18 +

buildx:

19 +

runs-on: ubuntu-latest

20 +

permissions:

21 +

contents: read

22 +

packages: write

23 + 24 +

steps:

25 +

- name: Checkout

26 +

uses: actions/checkout@v3.5.3

27 + 28 +

- id: prep

29 +

if: "startsWith(github.ref, 'refs/tags/v')"

30 +

run: |

31 +

echo ::set-output name=tag::${GITHUB_REF#refs/tags/v}

32 + 33 +

- name: Set up QEMU

34 +

uses: docker/setup-qemu-action@v2.2.0

35 + 36 +

- name: Set up Docker Buildx

37 +

uses: docker/setup-buildx-action@v2.9.1

38 + 39 +

- name: Cache Docker layers

40 +

uses: actions/cache@v3.3.1

41 +

with:

42 +

path: /tmp/.buildx-cache

43 +

key: ${{ runner.os }}-buildx-${{ github.sha }}

44 +

restore-keys: |

45 +

${{ runner.os }}-buildx-

46 + 47 +

- name: Login to GHCR

48 +

uses: docker/login-action@v2.2.0

49 +

if: github.event_name != 'pull_request'

50 +

with:

51 +

registry: ghcr.io

52 +

username: ${{ github.actor }}

53 +

password: ${{ secrets.GITHUB_TOKEN }}

54 + 55 +

- name: Push to GitHub Packages

56 +

uses: docker/build-push-action@v4.1.1

57 +

with:

58 +

context: .

59 +

tags: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.prep.outputs.tag || 'latest' }}

60 +

push: ${{ github.event_name != 'pull_request' }}

61 +

cache-from: type=local,src=/tmp/.buildx-cache

62 +

cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

63 + 64 +

- name: Move cache

65 +

run: |

66 +

rm -rf /tmp/.buildx-cache

67 +

mv /tmp/.buildx-cache-new /tmp/.buildx-cache

68 +

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