Skip to content

Commit c523c8c

Browse files
authored
Create docker-image.yml
1 parent 895de3d commit c523c8c

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎.github/workflows/docker-image.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Build the Docker image
15+
run: |
16+
rm -rf $(ls -a -I '.' -I '..' -I '.git')
17+
docker pull ModifiedCommand/convert-minecraft-java-texture-to-bedrock-webapp
18+
docker run -d --name convert-minecraft-java-texture-to-bedrock-webapp ModifiedCommand/convert-minecraft-java-texture-to-bedrock-webapp
19+
docker cp convert-minecraft-java-texture-to-bedrock-webapp:/usr/local/apache2/htdocs/ ./
20+
docker container rm convert-minecraft-java-texture-to-bedrock-webapp -f
21+
cp -r htdocs/* .
22+
rm -rf htdocs
23+
24+
- name: Sigin to git
25+
run: |
26+
git config --local user.email "action@github.com"
27+
git config --local user.name "GitHub Action"
28+
29+
- name: Commit
30+
run: |
31+
git add .
32+
git commit -m "GitHub Actions"
33+
34+
- name: Push commit
35+
uses: ad-m/github-push-action@master
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
branch: "gh-pages"

0 commit comments

Comments
 (0)