Skip to content

Commit

Permalink
test github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RamyAlshurafa committed Dec 16, 2023
1 parent ac1c5de commit faab91c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Images to GHCR

on:
push:
branches:
- main
workflow_dispatch:

jobs:
push-store-image:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./Store"
steps:
- name: "Checkout GitHub Action"
uses: actions/checkout@main

- name: "Login to GitHub Container Registry"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: "Build and Push Docker Image"
uses: docker/build-push-action@v2
with:
context: .
file: ./Store/Dockerfile
push: true
tags: ghcr.io/${{github.repository}}/store:latest

0 comments on commit faab91c

Please sign in to comment.