Skip to content

Commit

Permalink
Update docker-hub.yml
Browse files Browse the repository at this point in the history
Remove deprecation warnings.
  • Loading branch information
amadeous committed May 16, 2023
1 parent ce77d95 commit 1024e76
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,31 @@ jobs:

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2.5.0
id: buildx

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Get the version
id: get_version
run: |
version=$(git describe --tags --abbrev=0)
echo $version
echo ${version:1}
echo ::set-output name=VERSION::$version
echo ::set-output name=VERSION-NO-V::${version:1}
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION-NO-V=${version:1}" >> $GITHUB_OUTPUT
shell: bash

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: ./
file: Dockerfile
Expand Down

0 comments on commit 1024e76

Please sign in to comment.