summaryrefslogtreecommitdiffstats
path: root/.github/workflows/docker.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/docker.yml16
1 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 4dbaf24..90ff761 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -3,13 +3,13 @@ name: docker
on:
push:
branches: main
- tags: "*"
+ tags: ["*"]
jobs:
build:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt-get update
@@ -22,9 +22,9 @@ jobs:
[ "$arch" = "armv7" ] && arch="arm"
mkdir -p dist/$arch && cp build/ttyd dist/$arch/ttyd
done
- - uses: docker/setup-qemu-action@v2
- - uses: docker/setup-buildx-action@v2
- - uses: docker/login-action@v2
+ - uses: docker/setup-qemu-action@v3
+ - uses: docker/setup-buildx-action@v3
+ - uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
@@ -42,7 +42,7 @@ jobs:
echo "ALPINE_TAG=tsl0922/ttyd:alpine" >> $GITHUB_ENV
esac
- name: build/push docker image
- uses: docker/build-push-action@v3
+ uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
@@ -50,7 +50,7 @@ jobs:
push: true
tags: ${{ env.DOCKER_TAG }}
- name: build/push docker image (alpine)
- uses: docker/build-push-action@v3
+ uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.alpine