Skip to content

Commit

Permalink
test github actions 2
Browse files Browse the repository at this point in the history
  • Loading branch information
RamyAlshurafa committed Dec 16, 2023
1 parent faab91c commit b07ef1f
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,24 @@ on:
workflow_dispatch:

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

- name: "Login to GitHub Container Registry"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

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

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

0 comments on commit b07ef1f

Please sign in to comment.