Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorunic committed Jan 29, 2025
1 parent bfb0905 commit cb33286
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker_auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ jobs:
steps:
- name: Login to Docker Hub
id: login_docker
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Login to Container Registry
id: login_ghcr
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Check out repo
id: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Prepare env variables
id: env
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Build and push latest stable branch
if: ${{ env.BUILD_BRANCH == env.STABLE_BRANCH }}
id: docker_build_latest
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: ${{ env.BUILD_BRANCH }}
file: ${{ env.BUILD_BRANCH }}/Dockerfile
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Build and push everything else
if: ${{ env.BUILD_BRANCH != env.STABLE_BRANCH }}
id: docker_build_regular
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: ${{ env.BUILD_BRANCH }}
file: ${{ env.BUILD_BRANCH }}/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- name: Check out repo
id: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Update Docker Hub description
id: description
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/docker_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ jobs:
steps:
- name: Login to Docker Hub
id: login_docker
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Login to Container Registry
id: login_ghcr
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Check out repo
id: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Prepare env variables
id: env
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Build and push latest stable branch
if: ${{ env.BUILD_BRANCH == env.STABLE_BRANCH }}
id: docker_build_latest
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: ${{ env.BUILD_BRANCH }}
file: ${{ env.BUILD_BRANCH }}/Dockerfile
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Build and push everything else
if: ${{ env.BUILD_BRANCH != env.STABLE_BRANCH }}
id: docker_build_regular
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: ${{ env.BUILD_BRANCH }}
file: ${{ env.BUILD_BRANCH }}/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Check out repo
id: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ secrets.ACTION_TOKEN }}

Expand Down

0 comments on commit cb33286

Please sign in to comment.