diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 3b01af0..c08d079 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,18 +1,19 @@ -name: Docker Image CI +name: Docker Image for Releases on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + release: + types: [published] jobs: - build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag aunefyren/wrapperr:beta + - uses: actions/checkout@v2 + - uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + registry: docker.io + repository: aunefyren/wrapperr + tags: latest, ${{ github.ref }}