Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom JEANNESSON committed Jan 2, 2024
1 parent 8ccc2e4 commit e858972
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,26 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false

- name: build
run: make build



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

- name: Tag Docker image
run: |
docker ps -a
echo "$(echo ${{ github.sha }})" > version.txt
docker tag local-image:tag ghcr.io/${{ github.repository }}/local-image:$(cat version.txt)
- name: Push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}/local-image:$(cat version.txt)

0 comments on commit e858972

Please sign in to comment.