forked from Kieran/snort
fix docker-release push
This commit is contained in:
parent
180ac0da75
commit
28052e98b9
@ -113,7 +113,7 @@ steps:
|
|||||||
img build -t git.v0l.io/kieran/snort:${DRONE_TAG} \
|
img build -t git.v0l.io/kieran/snort:${DRONE_TAG} \
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
-f Dockerfile.prebuilt .
|
-f Dockerfile.prebuilt .
|
||||||
- img push git.v0l.io/kieran/snort:latest
|
- img push git.v0l.io/kieran/snort:${DRONE_TAG}
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
claim:
|
claim:
|
||||||
|
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@ -48,30 +48,3 @@ jobs:
|
|||||||
releaseBody: 'See the assets to download and install this version.'
|
releaseBody: 'See the assets to download and install this version.'
|
||||||
releaseDraft: true
|
releaseDraft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
build_docker:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Set env variables
|
|
||||||
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: /tmp/.buildx-cache
|
|
||||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-buildx-
|
|
||||||
- uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.repository_owner }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- uses: docker/setup-qemu-action@v2
|
|
||||||
- uses: docker/setup-buildx-action@v2
|
|
||||||
- name: Build the Docker image
|
|
||||||
run: |
|
|
||||||
docker buildx build \
|
|
||||||
-t ghcr.io/${{ github.repository_owner }}/snort:$TAG \
|
|
||||||
--cache-from "type=local,src=/tmp/.buildx-cache" \
|
|
||||||
--cache-to "type=local,dest=/tmp/.buildx-cache" \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
|
||||||
--push .
|
|
Loading…
Reference in New Issue
Block a user