forked from Kieran/snort
1
0
Fork 0

fix docker-release push

This commit is contained in:
Kieran 2023-06-16 12:10:31 +01:00
parent 180ac0da75
commit 28052e98b9
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 2 additions and 29 deletions

View File

@ -113,7 +113,7 @@ steps:
img build -t git.v0l.io/kieran/snort:${DRONE_TAG} \
--platform linux/amd64,linux/arm64 \
-f Dockerfile.prebuilt .
- img push git.v0l.io/kieran/snort:latest
- img push git.v0l.io/kieran/snort:${DRONE_TAG}
volumes:
- name: cache
claim:

View File

@ -47,31 +47,4 @@ jobs:
releaseName: 'Snort v__VERSION__'
releaseBody: 'See the assets to download and install this version.'
releaseDraft: true
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 .
prerelease: false