|
@@ -11,11 +11,9 @@ jobs:
|
|
|
name: Push Docker image to Docker Hub
|
|
|
runs-on: ubuntu-latest
|
|
|
steps:
|
|
|
- -
|
|
|
- name: Check out the repo
|
|
|
+ - name: Check out the repo
|
|
|
uses: actions/checkout@v3
|
|
|
- -
|
|
|
- name: Prepare
|
|
|
+ - name: Prepare
|
|
|
id: prep
|
|
|
run: |
|
|
|
DOCKER_IMAGE=crowdsecurity/crowdsec
|
|
@@ -38,15 +36,12 @@ jobs:
|
|
|
echo ::set-output name=tags::${TAGS}
|
|
|
echo ::set-output name=tags_slim::${TAGS_SLIM}
|
|
|
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
|
|
- -
|
|
|
- name: Set up QEMU
|
|
|
- uses: docker/setup-qemu-action@v1
|
|
|
- -
|
|
|
- name: Set up Docker Buildx
|
|
|
- uses: docker/setup-buildx-action@v1
|
|
|
- -
|
|
|
- name: Login to DockerHub
|
|
|
- uses: docker/login-action@v1
|
|
|
+ - name: Set up QEMU
|
|
|
+ uses: docker/setup-qemu-action@v2
|
|
|
+ - name: Set up Docker Buildx
|
|
|
+ uses: docker/setup-buildx-action@v2
|
|
|
+ - name: Login to DockerHub
|
|
|
+ uses: docker/login-action@v2
|
|
|
with:
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
@@ -58,9 +53,8 @@ jobs:
|
|
|
username: ${{ github.repository_owner }}
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
- -
|
|
|
- name: Build and push slim image
|
|
|
- uses: docker/build-push-action@v2
|
|
|
+ - name: Build and push slim image
|
|
|
+ uses: docker/build-push-action@v3
|
|
|
with:
|
|
|
context: .
|
|
|
file: ./Dockerfile
|
|
@@ -74,9 +68,8 @@ jobs:
|
|
|
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
|
|
|
org.opencontainers.image.revision=${{ github.sha }}
|
|
|
|
|
|
- -
|
|
|
- name: Build and push full image
|
|
|
- uses: docker/build-push-action@v2
|
|
|
+ - name: Build and push full image
|
|
|
+ uses: docker/build-push-action@v3
|
|
|
with:
|
|
|
context: .
|
|
|
file: ./Dockerfile
|