File tree 1 file changed +53
-0
lines changed
1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name : CI
4
+
5
+ # Controls when the action will run.
6
+ on :
7
+ # Triggers the workflow on push or pull request events but only for the master branch
8
+ push :
9
+ branches : [ master ]
10
+ pull_request :
11
+ branches : [ master ]
12
+
13
+ # Allows you to run this workflow manually from the Actions tab
14
+ workflow_dispatch :
15
+
16
+ env :
17
+ IMAGE_URL : tophant/arl
18
+
19
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
20
+ jobs :
21
+ # This workflow contains a single job called "build"
22
+ build :
23
+ # The type of runner that the job will run on
24
+ runs-on : ubuntu-latest
25
+
26
+ # Steps represent a sequence of tasks that will be executed as part of the job
27
+ steps :
28
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29
+ - uses : actions/checkout@master
30
+
31
+ - name : Download
32
+ run : |
33
+ pwd
34
+ mkdir -p docker/GeoLite2/
35
+ wget -O docker/GeoLite2/GeoLite2-ASN.mmdb https://github.com/1c3z/arl_files/raw/master/GeoLite2-ASN.mmdb
36
+ wget -O docker/GeoLite2/GeoLite2-City.mmdb https://github.com/1c3z/arl_files/raw/master/GeoLite2-City.mmdb
37
+ ls -al docker/GeoLite2
38
+
39
+ # Runs a single command using the runners shell
40
+ - name : Login Registry
41
+ run : |
42
+ docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
43
+
44
+ # Runs a set of commands using the runners shell
45
+ - name : Build Docker image
46
+ run : |
47
+ docker build -t ${IMAGE_URL}:${GITHUB_SHA} -f docker/worker/Dockerfile .
48
+
49
+ - name : Publish
50
+ run : |
51
+ docker push ${IMAGE_URL}:${GITHUB_SHA}
52
+
53
+
You can’t perform that action at this time.
0 commit comments