diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index e3e854954d..1cb2ce5649 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -7,7 +7,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node: ["14.x", "16.x"] + node: ["16.x"] os: [ubuntu-latest, windows-latest, macOS-latest] steps: diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 2926594b53..b0bca05e43 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,7 +7,13 @@ name: Docker Build & Publish on: push: - branches: [main] + branches: + - "main" + tags: + - "v*.*.*" + pull_request: + branches: + - "main" env: # Use docker.io for Docker Hub if empty @@ -22,11 +28,6 @@ jobs: packages: write steps: - - id: imageName - uses: ASzc/change-string-case-action@v2 - with: - string: ${{ github.repository }} - - name: Checkout repository uses: actions/checkout@v3 @@ -46,7 +47,15 @@ jobs: id: meta uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: - images: ${{ env.REGISTRY }}/${{ steps.imageName.outputs.lowercase }} + images: ${{ env.REGISTRY }}/${{ github.repository }} + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action @@ -55,5 +64,5 @@ jobs: with: context: . push: ${{ github.event_name != 'pull_request' }} - tags: ${{ env.REGISTRY }}/${{ steps.imageName.outputs.lowercase }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}