diff options
| author | Léo Vansimay | 2021-04-21 11:55:09 +0200 |
|---|---|---|
| committer | GitHub | 2021-04-21 11:55:09 +0200 |
| commit | 0d5882cc8c2a09601111659cd85ddca8b6d31d31 (patch) | |
| tree | a765a9a995fbc4cbe2f883b84b203a737d6528a3 /.github/workflows | |
| parent | 27486822202b50b2dd1cdf2dc95d143671b1ae25 (diff) | |
| download | sec-certs-0d5882cc8c2a09601111659cd85ddca8b6d31d31.tar.gz sec-certs-0d5882cc8c2a09601111659cd85ddca8b6d31d31.tar.zst sec-certs-0d5882cc8c2a09601111659cd85ddca8b6d31d31.zip | |
Update docker-image.yml
Revision of the code thanks to the reviews, we'll now only use the official method.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/docker-image.yml | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7500554d..d8b8f5a0 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,19 +7,27 @@ on: branches: [ master ] pull_request: branches: [ master ] - + jobs: - - build-and-push: - name: Push Docker image to Docker Hub + docker: runs-on: ubuntu-latest steps: - - name: Check out the repo - uses: actions/checkout@v2 - - name: Push to Docker Hub + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_LOGIN }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + - + name: Build and push + id: docker_build uses: docker/build-push-action@v2 with: - username: ${{ secrets.DOCKER_USERNAME }} #we can set these secrets with admin rights, so the code will adapt to the dockerHub account used - password: ${{ secrets.DOCKER_PASSWORD }} - repository: keleran/sec-certs #for now I wrote my repo - tag_with_ref: true + push: true + tags: user/app:latest |
