.github/workflows/default.yml in eufycam-0.5.0 vs .github/workflows/default.yml in eufycam-0.6.0

- old
+ new

@@ -123,25 +123,36 @@ name: eufycam-${{ env.EUFYCAM_VERSION }}.gem path: /tmp - run: mv /tmp/eufycam-${{ env.EUFYCAM_VERSION }}.gem . - name: Push Gem to Rubygems run: bundle exec rake release[rubygems] + continue-on-error: true - name: Push Gem to Github Package Registry run: bundle exec rake release[github] + continue-on-error: true - name: Create Release id: create_release uses: actions/create-release@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} release_name: ${{ github.ref }} draft: false prerelease: false - - name: Docker - run: docker build . -t kyledecot/eufycam:latest - - run: echo ${{ secrets.DOCKER_PASSWORD}} docker login -u ${{ secrets.DOCKER_USERNAME}} --password-stdin - - run: docker push kyledecot/eufycam:latest + - uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: kyledecot/eufycam + tags: "latest, ${{ env.EUFYCAM_VERSION }}" + - uses: docker/build-push-action@v1 + with: + username: ${{ github.actor }} + password: ${{secrets.PERSONAL_ACCESS_TOKEN}} + repository: kyledecot/eufycam/eufycam + registry: docker.pkg.github.com + tags: "latest, ${{ env.EUFYCAM_VERSION }}" - name: Upload Release Asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}