Skip to content

Commit

Permalink
ci/cd: update GitHub Workflows
Browse files Browse the repository at this point in the history
- use v4 of rlespinasse/github-slug-action (instead of v2.x)
  - the last "build-and-publish"-action threw a warning ("This version only support linux-based workflow, please use 'rlespinasse/[email protected]' instead")
- update workflows to use checkout v4
  - this should fix two deprecation warnings
  • Loading branch information
Criamos committed Oct 29, 2024
1 parent 3e31cb1 commit 196c936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- uses: azure/docker-login@v1
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- uses: rlespinasse/[email protected]
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
- name: Build Docker image
run: docker build --tag ${{ github.repository }}:${{ env.GITHUB_REF_SLUG }} .
- name: Publish to DockerHub
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 196c936

Please sign in to comment.