name: Deploy on: push: branches: - master jobs: build: runs-on: almalinux-8 container: image: git.query.consul/unkin/almalinux8:latest options: --privileged steps: - name: Set up environment run: | dnf install -y yum-utils yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo dnf module enable -y nodejs:20 dnf install -y docker-ce-cli make bash git nodejs - name: Checkout code uses: actions/checkout@v3 - name: Build Docker Image run: | make build - name: Log in to Docker env: UPLOAD_USER: ${{ secrets.UPLOAD_USER }} UPLOAD_PASS: ${{ secrets.UPLOAD_PASS }} run: | echo "$UPLOAD_PASS" | docker login --username=$UPLOAD_USER --password-stdin git.query.consul - name: Push Docker Image run: | make push