Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abosaad11 authored Nov 10, 2023
1 parent 080b2d4 commit 2099c48
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ on: [push, workflow_dispatch]
jobs:
publish-grid-image:
runs-on: ubuntu-latest
steps:
- name: login
- uses: actions/checkout@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the hello-docker Docker image
run: |
docker build . --tag ghcr.io/abosaad11/grid:0.5
docker run ghcr.io/abosaad11/grid:0.5
docker push ghcr.io/abosaad11/grid:0.5
steps:
- name: login
- uses: actions/checkout@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the hello-docker Docker image
run: |
docker build . --tag ghcr.io/abosaad11/grid:0.5
docker run ghcr.io/abosaad11/grid:0.5
docker push ghcr.io/abosaad11/grid:0.5

0 comments on commit 2099c48

Please sign in to comment.