Skip to content

1.0.45 Add automated build and push action #3

1.0.45 Add automated build and push action

1.0.45 Add automated build and push action #3

name: build-push-dockerhub
on:
push:
branches:
- 'main'
jobs:
name: build-and-push
docker:
runs-on: ubuntu-latest
steps:
-
name: Get version from version file

Check failure on line 14 in .github/workflows/build-and-push-to-dockerhub.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-push-to-dockerhub.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
run: |
VERSION=$(cat VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push database container
uses: docker/build-push-action@v5
with:
push: true
tags: webpwnized/mutillidae:database
-
name: Build and push database container
uses: docker/build-push-action@v5
with:
push: true
tags: webpwnized/mutillidae:database-${{ env.VERSION }}