Skip to content

Commit

Permalink
first version of pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
JeyDi committed Aug 4, 2023
1 parent 40125b7 commit 60b0975
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/deploy_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,28 @@ jobs:
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GITHUB_USERNAME }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push python base
run: |
docker build ./Docker/python.dockerfile --tag ghcr.io/PythonBiellaGroup/python-base:latest
docker run ghcr.io/PythonBiellaGroup/python-base:latest
docker push ghcr.io/PythonBiellaGroup/python-base:latest

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: |
PythonBiellaGroup/Dockbase
ghcr.io/${{ github.repository }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: ./Docker/python.dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# Custom job to publish the image
# - name: Build and push python base
# run: |
# docker build ./Docker/python.dockerfile --tag ghcr.io/PythonBiellaGroup/python-base:latest
# docker run ghcr.io/PythonBiellaGroup/python-base:${{ steps.meta.outputs.tags }}
# docker push ghcr.io/PythonBiellaGroup/python-base:${{ steps.meta.outputs.tags }}

0 comments on commit 60b0975

Please sign in to comment.