Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/pottytrainer. a solution to bad poops
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849name: Buildon: push: branches: mainpermissions: id-token: write contents: read packages: write jobs: docker: name: Build image runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Log in to Docker Hub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Log in to GitHub Container Registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 with: role-to-assume: arn:aws:iam::767531804574:role/eksClusterRole aws-region: us-east-1 - name: Build & push image uses: docker/build-push-action@v4 with: context: . platforms: linux/amd64,linux/arm64 push: true tags: | glacials/pottytrainer:latest ghcr.io/glacials/pottytrainer:latest - name: Deploy run: "curl -H \"Content-Type: application/vnd.api+json\" --request POST https://app.terraform.io/api/v2/runs -d '{\"data\": {\"type\": \"runs\", \"relationships\": {\"workspace\": {\"data\": {\"type\": \"workspaces\", \"id\": \"ws-WXyRdoYZ9AofRaBW\"}}}}}'"