Update README.md #46
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: Déployer l'image Docker (dernière version du dépôt Github) | |
on: [push] | |
jobs: | |
build-and-tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build Docker Image | |
run: docker build -t wezzer . | |
- name: Tag Docker Image | |
run: docker tag wezzer luckyluka17/wezzer:latest | |
- name: Push Docker Image | |
run: docker push luckyluka17/wezzer:latest |