Update README.md #52
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: Publish Kubeload | |
on: [push] | |
jobs: | |
build-amd64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Publish to Registry | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: efrat19/kubeload | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
tags: "amd64-latest,amd64-${{ github.sha }}" | |
push-manifest: | |
runs-on: [ubuntu-latest] | |
needs: | |
- build-amd64 | |
steps: | |
- name: setup docker(Without version) | |
uses: docker-practice/actions-setup-docker@master | |
- run: | | |
docker manifest create efrat19/kubeload:latest efrat19/kubeload:amd64-latest | |
docker manifest create efrat19/kubeload:${{ github.sha }} efrat19/kubeload:amd64-${{ github.sha }} | |
docker login -u ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }} | |
docker manifest push efrat19/kubeload:latest | |
docker manifest push efrat19/kubeload:${{ github.sha }} | |