Skip to content

Commit

Permalink
github: Setup Github Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Panchajanya1999 <[email protected]>
  • Loading branch information
Panchajanya1999 committed Mar 15, 2024
1 parent 821b042 commit 9c41ffa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: panchajanya1999
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
run: |
docker build -f Dockerfile . -t panchajanya1999/archlinux:latest
docker push panchajanya1999/archlinux:latest
12 changes: 0 additions & 12 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit 9c41ffa

Please sign in to comment.