Skip to content

Commit 12e76e5

Browse files
authored
revert workflow
1 parent 923db2a commit 12e76e5

File tree

1 file changed

+7
-54
lines changed

1 file changed

+7
-54
lines changed

.github/workflows/workflow.yml

Lines changed: 7 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
env:
1818
TZ: Europe/Amsterdam
1919
steps:
20-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@v5
2121
- uses: actions/setup-node@v6
2222
with:
2323
node-version: 24
@@ -32,28 +32,17 @@ jobs:
3232
run:
3333
working-directory: ./api
3434
steps:
35-
- uses: actions/checkout@v6
35+
- uses: actions/checkout@v5
3636
- run: cargo build --verbose
3737
- run: cargo test --verbose
3838
- run: cargo clippy --verbose -- -D warnings
3939

4040
build-docker:
4141
if: github.event_name != 'pull_request'
42-
needs: [build-rs, build-ng]
43-
strategy:
44-
matrix:
45-
include:
46-
# AMD64 native
47-
- os: ubuntu-latest
48-
arch: amd64
49-
platforms: linux/amd64
50-
# ARM64 native
51-
- os: ubuntu-latest
52-
arch: arm64
53-
platforms: linux/arm64
54-
runs-on: ${{ matrix.os }}
42+
needs: [build-rs, build-ng]
43+
runs-on: ubuntu-latest
5544
steps:
56-
- uses: actions/checkout@v6
45+
- uses: actions/checkout@v5
5746
- run: |
5847
REF_NAME="${{ github.ref_name }}"
5948
REF_NAME_LOWER=$(echo "$REF_NAME" | tr '[:upper:]' '[:lower:]')
@@ -63,7 +52,7 @@ jobs:
6352
REF_NAME_CLEAN="0$REF_NAME_CLEAN"
6453
fi
6554
echo "CLEANED_REF_NAME=$REF_NAME_CLEAN" >> $GITHUB_ENV
66-
55+
- uses: docker/setup-qemu-action@v3
6756
- uses: docker/setup-buildx-action@v3
6857
- uses: docker/login-action@v3
6958
with:
@@ -76,54 +65,18 @@ jobs:
7665
username: ${{ secrets.DOCKERHUB_USERNAME }}
7766
password: ${{ secrets.DOCKERHUB_TOKEN }}
7867
repository: ${{ github.repository }}
79-
short-description: ${{ github.event.repository.description }}
80-
68+
short-description: ${{ github.event.repository.description }}
8169
- uses: docker/build-push-action@v6
8270
if: startsWith(github.ref, 'refs/tags/')
8371
with:
8472
context: .
8573
push: true
86-
platforms: ${{ matrix.platforms }}
8774
tags: ${{ github.repository }}:latest,${{ github.repository }}:${{ github.ref_name }}
8875
build-args: VERSION_ARG=v${{ github.ref_name }}
89-
cache-from: type=registry,ref=${{ github.repository }}:cache
90-
cache-to: type=registry,ref=${{ github.repository }}:cache,mode=max
91-
9276
- uses: docker/build-push-action@v6
9377
if: startsWith(github.ref, 'refs/heads/')
9478
with:
9579
context: .
9680
push: true
97-
platforms: ${{ matrix.platforms }}
9881
tags: ${{ github.repository }}:${{ env.CLEANED_REF_NAME }}
9982
build-args: VERSION_ARG=${{ github.sha }}@${{ env.CLEANED_REF_NAME }}
100-
cache-from: type=registry,ref=${{ github.repository }}:cache
101-
cache-to: type=registry,ref=${{ github.repository }}:cache,mode=max
102-
103-
docker-manifest:
104-
if: github.event_name != 'pull_request'
105-
needs: build-docker
106-
runs-on: ubuntu-latest
107-
steps:
108-
- uses: actions/checkout@v6
109-
- uses: docker/login-action@v3
110-
with:
111-
username: ${{ secrets.DOCKERHUB_USERNAME }}
112-
password: ${{ secrets.DOCKERHUB_TOKEN }}
113-
114-
- name: Create multi-arch manifest for tags
115-
if: startsWith(github.ref, 'refs/tags/')
116-
run: |
117-
docker buildx imagetools create \
118-
-t ${{ github.repository }}:latest \
119-
${{ github.repository }}:latest
120-
docker buildx imagetools create \
121-
-t ${{ github.repository }}:${{ github.ref_name }} \
122-
${{ github.repository }}:${{ github.ref_name }}
123-
124-
- name: Create multi-arch manifest for branches
125-
if: startsWith(github.ref, 'refs/heads/')
126-
run: |
127-
docker buildx imagetools create \
128-
-t ${{ github.repository }}:${{ env.CLEANED_REF_NAME }} \
129-
${{ github.repository }}:${{ env.CLEANED_REF_NAME }}

0 commit comments

Comments
 (0)