feat: Try new syntax for gitea action
This commit is contained in:
@@ -8,19 +8,17 @@ jobs:
|
|||||||
runs-on: [ubuntu-latest, amd]
|
runs-on: [ubuntu-latest, amd]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v5
|
||||||
- name: Install Docker
|
- name: Setup Docker
|
||||||
run : |
|
uses: docker/setup-buildx-action@v3
|
||||||
apt-get install ca-certificates curl gnupg
|
- name: Login to DockerHub
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
uses: docker/login-action@v3
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
with:
|
||||||
chmod a+r /etc/apt/keyrings/docker.gpg
|
registry: git.woodburn.au
|
||||||
echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
username: nathanwoodburn
|
||||||
apt-get update
|
password: ${{ secrets.DOCKERGIT_TOKEN }}
|
||||||
apt-get install docker-ce-cli -y
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run : |
|
run : |
|
||||||
echo "${{ secrets.DOCKERGIT_TOKEN }}" | docker login git.woodburn.au -u nathanwoodburn --password-stdin
|
|
||||||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
||||||
tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
|
tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
|
||||||
tag=${tag//\//-}
|
tag=${tag//\//-}
|
||||||
@@ -43,19 +41,17 @@ jobs:
|
|||||||
runs-on: [ubuntu-latest, amd]
|
runs-on: [ubuntu-latest, amd]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v5
|
||||||
- name: Install Docker
|
- name: Setup Docker
|
||||||
run : |
|
uses: docker/setup-buildx-action@v3
|
||||||
apt-get install ca-certificates curl gnupg
|
- name: Login to DockerHub
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
uses: docker/login-action@v3
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
with:
|
||||||
chmod a+r /etc/apt/keyrings/docker.gpg
|
registry: git.woodburn.au
|
||||||
echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
username: nathanwoodburn
|
||||||
apt-get update
|
password: ${{ secrets.DOCKERGIT_TOKEN }}
|
||||||
apt-get install docker-ce-cli -y
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run : |
|
run : |
|
||||||
echo "${{ secrets.DOCKERGIT_TOKEN }}" | docker login git.woodburn.au -u nathanwoodburn --password-stdin
|
|
||||||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
||||||
tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
|
tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
|
||||||
tag=${tag//\//-}
|
tag=${tag//\//-}
|
||||||
|
|||||||
Reference in New Issue
Block a user