Skip to content

Commit a3d19a2

Browse files
committed
add test
1 parent d92cdae commit a3d19a2

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Docker Image CI arcgis
2+
on:
3+
workflow_dispatch: null
4+
push:
5+
branches: main
6+
paths:
7+
- 'images/test/**'
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions: write-all
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Login to GitHub Container Registry
15+
if: github.repository == 'nmfs-opensci/container-images'
16+
uses: docker/login-action@v1
17+
with:
18+
registry: ghcr.io
19+
username: ${{github.actor}}
20+
password: ${{secrets.GITHUB_TOKEN}}
21+
- name: Build the Docker image
22+
if: github.repository == 'nmfs-opensci/container-images'
23+
run: |
24+
docker build images/test -f images/test/Dockerfile --tag ghcr.io/nmfs-opensci/container-images/test:latest
25+
- name: Publish
26+
if: github.repository == 'nmfs-opensci/container-images'
27+
run: |
28+
docker push ghcr.io/nmfs-opensci/container-images/test:latest
29+

0 commit comments

Comments
 (0)