Skip to content

Commit

Permalink
fix publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vuillaut authored Apr 26, 2024
1 parent 29ebbe4 commit 2ad37ab
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ name: publish
on: [push]

jobs:
publish-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker image
run: |
docker build . --tag ghcr.io/cta-observatory/lstdock:latest
docker run ghcr.io/cta-observatory/lstdock:latest
docker push ghcr.io/cta-observatory/lstdock:latest
publish-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build docker image
run: |
docker build . --tag ghcr.io/cta-observatory/lstdock:latest
docker run ghcr.io/cta-observatory/lstdock:latest
docker push ghcr.io/cta-observatory/lstdock:latest

0 comments on commit 2ad37ab

Please sign in to comment.