Skip to content

Commit 28052e9

Browse files
committed
fix docker-release push
1 parent 180ac0d commit 28052e9

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed

.drone.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ steps:
113113
img build -t git.v0l.io/kieran/snort:${DRONE_TAG} \
114114
--platform linux/amd64,linux/arm64 \
115115
-f Dockerfile.prebuilt .
116-
- img push git.v0l.io/kieran/snort:latest
116+
- img push git.v0l.io/kieran/snort:${DRONE_TAG}
117117
volumes:
118118
- name: cache
119119
claim:

.github/workflows/release.yml

+1-28
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,4 @@ jobs:
4747
releaseName: 'Snort v__VERSION__'
4848
releaseBody: 'See the assets to download and install this version.'
4949
releaseDraft: true
50-
prerelease: false
51-
build_docker:
52-
runs-on: ubuntu-latest
53-
steps:
54-
- name: Set env variables
55-
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
56-
- uses: actions/checkout@v2
57-
- uses: actions/cache@v2
58-
with:
59-
path: /tmp/.buildx-cache
60-
key: ${{ runner.os }}-buildx-${{ github.sha }}
61-
restore-keys: |
62-
${{ runner.os }}-buildx-
63-
- uses: docker/login-action@v1
64-
with:
65-
registry: ghcr.io
66-
username: ${{ github.repository_owner }}
67-
password: ${{ secrets.GITHUB_TOKEN }}
68-
- uses: docker/setup-qemu-action@v2
69-
- uses: docker/setup-buildx-action@v2
70-
- name: Build the Docker image
71-
run: |
72-
docker buildx build \
73-
-t ghcr.io/${{ github.repository_owner }}/snort:$TAG \
74-
--cache-from "type=local,src=/tmp/.buildx-cache" \
75-
--cache-to "type=local,dest=/tmp/.buildx-cache" \
76-
--platform linux/amd64,linux/arm64 \
77-
--push .
50+
prerelease: false

0 commit comments

Comments
 (0)