Merge pull request #6 from laura-hetzel/cleanup #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
docker_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
#- name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v3 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USER }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# - name: Extract metadata (tags, labels) for Docker | |
# id: meta | |
# uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | |
# with: | |
# images: thefollyllama/medusa | |
# - name: Build & push the Docker image | |
# uses: docker/build-push-action@v6 | |
# with: | |
# context: . | |
# tags: thefollyllama/medusa:latest | |
# push: true | |
# tags: ${{ steps.meta.outputs.tags }} | |
# labels: ${{ steps.meta.outputs.labels }} | |
- name: Build Docker | |
run: docker build -f Dockerfile . -t thefollyllama/medusa | |
- name: Push image | |
run: docker push thefollyllama/medusa | |
if: github.event_name != 'pull_request' |