diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 41fd6c2..629e5e6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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