diff --git a/.github/metagame/ci.yaml b/.github/metagame/ci.yaml deleted file mode 100644 index caa58a0..0000000 --- a/.github/metagame/ci.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: "CI" - -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Log in to the Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - run: docker buildx create --use --driver=docker-container - - run: | - TAG_LATEST_IF_MASTER=$(if [ "$GITHUB_REF_NAME" = "main" ]; then echo "-t ghcr.io/${{ github.repository }}/metagame:latest"; else echo ""; fi) - docker buildx build . \ - -t ghcr.io/${{ github.repository }}/metagame:${{ github.sha }} $TAG_LATEST_IF_MASTER \ - --push \ - --cache-to type=gha,scope=$GITHUB_REF_NAME-metagame \ - --cache-from type=gha,scope=$GITHUB_REF_NAME-metagame diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1dedcaa..caa58a0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,9 +15,9 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - run: docker buildx create --use --driver=docker-container - run: | - TAG_LATEST_IF_MASTER=$(if [ "$GITHUB_REF_NAME" = "main" ]; then echo "-t ghcr.io/${{ github.repository }}/agg-population:latest"; else echo ""; fi) + TAG_LATEST_IF_MASTER=$(if [ "$GITHUB_REF_NAME" = "main" ]; then echo "-t ghcr.io/${{ github.repository }}/metagame:latest"; else echo ""; fi) docker buildx build . \ - -t ghcr.io/${{ github.repository }}/agg-population:${{ github.sha }} $TAG_LATEST_IF_MASTER \ + -t ghcr.io/${{ github.repository }}/metagame:${{ github.sha }} $TAG_LATEST_IF_MASTER \ --push \ - --cache-to type=gha,scope=$GITHUB_REF_NAME-agg-population \ - --cache-from type=gha,scope=$GITHUB_REF_NAME-agg-population + --cache-to type=gha,scope=$GITHUB_REF_NAME-metagame \ + --cache-from type=gha,scope=$GITHUB_REF_NAME-metagame