2023-01-18 00:35:24 +00:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-01-25 08:07:41 +00:00
|
|
|
branches: [ "main" ]
|
2023-01-18 00:35:24 +00:00
|
|
|
pull_request:
|
2023-01-25 08:07:41 +00:00
|
|
|
branches: [ "main" ]
|
2023-01-18 00:35:24 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
|
|
|
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build the Docker image
|
2023-01-23 23:03:48 +00:00
|
|
|
run: docker build . --file Dockerfile --tag v0idf1sh/silvanus
|
2023-01-18 00:35:24 +00:00
|
|
|
- name: Log into Docker Hub
|
|
|
|
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
|
|
|
- name: Push image to Docker Hub
|
2023-01-23 23:03:48 +00:00
|
|
|
run: docker push v0idf1sh/silvanus
|