Skip to content

chore(deps-dev): bump @wdio/sauce-service from 8.39.1 to 9.0.4 (#4461) #659

chore(deps-dev): bump @wdio/sauce-service from 8.39.1 to 9.0.4 (#4461)

chore(deps-dev): bump @wdio/sauce-service from 8.39.1 to 9.0.4 (#4461) #659

Workflow file for this run

name: Build and push Docker image upon release
on:
push:
branches:
- 3.x
# Build and push Docker images *only* for releases.
release:
types: [published] # , created, edited
jobs:
push_to_registry:
name: Build and push Docker image to Docker Hub
runs-on: ubuntu-22.04
steps:
- name: Check out the repo with latest code
uses: actions/checkout@v4
- name: Push latest to Docker Hub
uses: docker/build-push-action@v6 # Info: https://github.com/docker/build-push-action/tree/releases/v1#tags
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ secrets.DOCKERHUB_REPOSITORY }}
tag_with_ref: true # Info: https://github.com/docker/build-push-action/tree/releases/v1#tag_with_ref
tag_with_sha: true # Info: https://github.com/docker/build-push-action/tree/releases/v1#tag_with_sha
tags: latest
- name: 'Get the current tag'
id: currentTag
uses: actions/checkout@v4
- run: git fetch --prune --unshallow && TAG=$(git describe --tags --abbrev=0) && echo $TAG && echo "TAG="$TAG >> "$GITHUB_ENV"
- name: Check out the repo with tag
uses: actions/checkout@v4
with:
ref: ${{ env.TAG }}
- name: Push current tag to Docker Hub
uses: docker/build-push-action@v6 # Info: https://github.com/docker/build-push-action/tree/releases/v1#tags
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ secrets.DOCKERHUB_REPOSITORY }}
tag_with_ref: true # Info: https://github.com/docker/build-push-action/tree/releases/v1#tag_with_ref
tag_with_sha: true # Info: https://github.com/docker/build-push-action/tree/releases/v1#tag_with_sha
tags: ${{ env.TAG }}