fix
This commit is contained in:
		| @ -28,6 +28,7 @@ jobs: | |||||||
|  |  | ||||||
|   build-and-release-image: |   build-and-release-image: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|  |     container: catthehacker/ubuntu:act-latest | ||||||
|     needs: build-portfolio-website |     needs: build-portfolio-website | ||||||
|     if: success() |     if: success() | ||||||
|     steps: |     steps: | ||||||
| @ -36,15 +37,25 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           fetch-depth: 0 # all history for all branches and tags |           fetch-depth: 0 # all history for all branches and tags | ||||||
|  |  | ||||||
|       - name: Build and push Docker image |       - name: Set up Docker Buildx | ||||||
|         env: |         uses: docker/setup-buildx-action@v3 | ||||||
|           REGISTRY: ${{ secrets.DOCKER_REGISTRY }} |  | ||||||
|           USERNAME: ${{ secrets.DOCKER_USERNAME }} |  | ||||||
|           PASSWORD: ${{ secrets.DOCKER_PASSWORD }} |  | ||||||
|         with: |         with: | ||||||
|           image: quay.io/podman/stable |           driver: kubernetes | ||||||
|           options: --volumes-from=${{ env.JOB_CONTAINER_NAME }} |           driver-opts: | | ||||||
|           run: | |             namespace=act-runner | ||||||
|             podman build -t "${REGISTRY}/my-portfolio:latest" . |             qemu.install=true | ||||||
|             podman login -u "${USERNAME}" -p "${PASSWORD}" "${REGISTRY}" |  | ||||||
|             podman push "${REGISTRY}/my-portfolio:latest" |       - name: Login to Docker registry | ||||||
|  |         uses: docker/login-action@v3 | ||||||
|  |         with: | ||||||
|  |           registry: ${{ secrets.DOCKER_REGISTRY }} | ||||||
|  |           username: ${{ secrets.DOCKER_USERNAME }} | ||||||
|  |           password: ${{ secrets.DOCKER_PASSWORD }} | ||||||
|  |  | ||||||
|  |       - name: Build Docker image | ||||||
|  |         uses: docker/build-push-action@v5 | ||||||
|  |         with: | ||||||
|  |           context: . | ||||||
|  |           file: Dockerfile | ||||||
|  |           push: true | ||||||
|  |           tags: ${{ secrets.DOCKER_REGISTRY }}/my-portfolio:latest | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user