-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 871 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: ci
on:
push:
branches:
- 'master'
env:
JENKINS_VERSION: 2.452.2
jobs:
Build-and-Push-Container:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.ETHERSYS_GHCR_USER }}
password: ${{ secrets.ETHERSYS_GHCR_PASS }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
build-args: JENKINS_VERSION=${{ env.JENKINS_VERSION }}
push: true
tags: ghcr.io/ethersys/jenkins:latest,ghcr.io/ethersys/jenkins:${{ env.JENKINS_VERSION }}