Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenwacker authored Jul 29, 2024
1 parent 970ef6c commit 48e17bb
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,22 @@ on:
release:
types: [published] # Trigger workflow on new releases
workflow_dispatch: # Allows manual triggering from GitHub UI

jobs:

build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Docker login
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USER }}" --password-stdin

- name: Build Docker Image
run: docker build . --file Dockerfile --tag your-docker-repo/your-image:latest --no-cache

- name: Push Docker Image
run: docker push your-docker-repo/your-image:latest
- uses: actions/checkout@v3
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD}}
- name: Build image
run: docker build . --file Dockerfile --tag msmint/msmint:latest
- name: Docker push
run: docker push ${{ secrets.DOCKER_USERNAME }}/msmint:latest

0 comments on commit 48e17bb

Please sign in to comment.