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} \
|
||||
--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:
|
||||
|
29
.github/workflows/release.yml
vendored
29
.github/workflows/release.yml
vendored
@ -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
|
Loading…
x
Reference in New Issue
Block a user