Skip to content

Commit be4ff02

Browse files
committed
CICD
1 parent b12f395 commit be4ff02

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/Docker.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Docker build
2+
3+
# Run this workflow every time a new commit pushed to your repository
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
env:
10+
PUID: '1000'
11+
PGID: '1000'
12+
13+
jobs:
14+
tests:
15+
runs-on: ubuntu-latest
16+
name: Build
17+
steps:
18+
# Checks out a copy of your repository on the ubuntu machine
19+
- name: Checkout code
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
22+
- name: Login to GitHub Container Registry
23+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Build and push
30+
run: |
31+
docker build . --tag ghcr.io/lycheeorg/lychee-pull-requests:latest
32+
docker push ghcr.io/lycheeorg/lychee-pull-requests:latest

0 commit comments

Comments
 (0)