Skip to content

Commit

Permalink
CI: bump Docker actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed Jun 12, 2023
1 parent a9c8b4b commit 6741c61
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/distribute-archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
sed -i 's/to-be-determined@tbd/[email protected]/' ./distribution/archlinux/flood/PKGBUILD
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Publish to AUR
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
build-args: |
AUR_FOLDER=./flood
Expand Down
42 changes: 18 additions & 24 deletions .github/workflows/publish-rolling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,13 @@ jobs:
- uses: actions/checkout@v3

- name: Set up QEMU
run: |
sudo apt update
sudo apt install --reinstall -y qemu-user-static
uses: docker/setup-qemu-action@v2

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

- name: Login to DockerHub
uses: docker/login-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -88,7 +86,7 @@ jobs:
echo ::set-output name=BUILD_VERSION::0.0.0-master.`git rev-parse --short HEAD`
- name: Publish flood:master to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: ./distribution/containers/Dockerfile.release
Expand All @@ -102,7 +100,7 @@ jobs:
- run: sleep 10

- name: Publish rtorrent-flood to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: ./distribution/containers/Dockerfile.rtorrent
Expand Down Expand Up @@ -132,15 +130,13 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Set up QEMU
run: |
sudo apt update
sudo apt install --reinstall -y qemu-user-static
uses: docker/setup-qemu-action@v2

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

- name: Login to DockerHub
uses: docker/login-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -152,7 +148,7 @@ jobs:
npm version --no-git-tag-version 0.0.0-master.`git rev-parse --short HEAD`
- name: Publish flood:master-dbg to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
Expand All @@ -162,7 +158,7 @@ jobs:
tags: jesec/flood:master-dbg

- name: Publish rtorrent-flood:master-dbg to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
Expand Down Expand Up @@ -265,15 +261,13 @@ jobs:
- uses: actions/checkout@v3

- name: Set up QEMU
run: |
sudo apt update
sudo apt install --reinstall -y qemu-user-static
uses: docker/setup-qemu-action@v2

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

- name: Login to DockerHub
uses: docker/login-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -291,7 +285,7 @@ jobs:
- run: find .

- name: Publish flood:master-distroless to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: ./distribution/containers/Dockerfile.distroless
Expand All @@ -301,7 +295,7 @@ jobs:
tags: jesec/flood:master-distroless

- name: Publish rtorrent-flood:master-distroless to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: ./distribution/containers/Dockerfile.distroless
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ jobs:
sudo apt install --reinstall -y qemu-user-static
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -109,7 +109,7 @@ jobs:
- run: sleep 120

- name: Publish to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
build-args: VERSION=${{ steps.parse_semver.outputs.FULL_VERSION }}
context: .
Expand Down

0 comments on commit 6741c61

Please sign in to comment.