Skip to content

Commit 64d87b6

Browse files
committed
push image to docker hub
1 parent 18d9078 commit 64d87b6

File tree

2 files changed

+30
-24
lines changed

2 files changed

+30
-24
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: build + run.sh
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Build container image
21+
run: docker build -t altserver:latest .
22+
23+
# Push the image to docker hub
24+
- name: Push image to Docker Hub
25+
run: |
26+
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
27+
docker tag altserver:latest ${{ secrets.DOCKER_USERNAME }}/altserver:latest
28+
docker push ${{ secrets.DOCKER_USERNAME }}/altserver:latest
29+
30+

.github/workflows/build_and_run_dot_sh.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)