Skip to content

Commit

Permalink
push image to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
dreth committed Oct 15, 2024
1 parent 18d9078 commit 64d87b6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 24 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build_and_push_to_docker_hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build + run.sh

on:
push:
branches:
- main
pull_request:
branches:
- main


jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Build container image
run: docker build -t altserver:latest .

# Push the image to docker hub
- name: Push image to Docker Hub
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker tag altserver:latest ${{ secrets.DOCKER_USERNAME }}/altserver:latest
docker push ${{ secrets.DOCKER_USERNAME }}/altserver:latest
24 changes: 0 additions & 24 deletions .github/workflows/build_and_run_dot_sh.yml

This file was deleted.

0 comments on commit 64d87b6

Please sign in to comment.