|
19 | 19 | - uses: actions/checkout@v4 |
20 | 20 | - run: make UBUNTU=${{ matrix.ubuntu-version }} update |
21 | 21 | - run: make UBUNTU=${{ matrix.ubuntu-version }} build |
22 | | - - run: | |
23 | | - docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} |
24 | | - make UBUNTU=${{ matrix.ubuntu-version }} push |
| 22 | + - name: Log in to docker |
| 23 | + uses: docker/login-action@v3 |
| 24 | + with: |
| 25 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 26 | + password: ${{ secrets.DOCKER_PASSWORD }} |
| 27 | + if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }} |
| 28 | + - run: make UBUNTU=${{ matrix.ubuntu-version }} push |
25 | 29 | if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }} |
26 | 30 |
|
27 | 31 | build-arm: |
|
35 | 39 | - uses: actions/checkout@v4 |
36 | 40 | - run: make DEBIAN=${{ matrix.debian-version }} update/arm |
37 | 41 | - run: make DEBIAN=${{ matrix.debian-version }} build/arm-base |
38 | | - - run: | |
39 | | - docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} |
40 | | - make UBUNTU=${{ matrix.debian-version }} push/arm-base |
| 42 | + - name: Log in to docker |
| 43 | + uses: docker/login-action@v3 |
| 44 | + with: |
| 45 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 46 | + password: ${{ secrets.DOCKER_PASSWORD }} |
| 47 | + if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }} |
| 48 | + - run: make UBUNTU=${{ matrix.debian-version }} push/arm-base |
41 | 49 | if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }} |
42 | 50 |
|
43 | 51 | build-minimal: |
|
52 | 60 | - uses: actions/checkout@v4 |
53 | 61 | - run: make UBUNTU=${{ matrix.ubuntu-version }} update |
54 | 62 | - run: make UBUNTU=${{ matrix.ubuntu-version }} build/minimal-cross |
55 | | - - run: | |
56 | | - docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} |
57 | | - make UBUNTU=${{ matrix.ubuntu-version }} push/minimal-cross |
| 63 | + - name: Log in to docker |
| 64 | + uses: docker/login-action@v3 |
| 65 | + with: |
| 66 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 67 | + password: ${{ secrets.DOCKER_PASSWORD }} |
| 68 | + if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }} |
| 69 | + - run: make UBUNTU=${{ matrix.ubuntu-version }} push/minimal-cross |
58 | 70 | if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }} |
59 | 71 |
|
60 | 72 | - run: make UBUNTU=${{ matrix.ubuntu-version }} save/minimal-cross |
@@ -116,9 +128,12 @@ jobs: |
116 | 128 |
|
117 | 129 | - name: Build image |
118 | 130 | run: make UBUNTU=${{ matrix.ubuntu-version }} build/cross-${{ matrix.type }}-${{ matrix.pyversion }} |
119 | | - |
| 131 | + - name: Log in to docker |
| 132 | + uses: docker/login-action@v3 |
| 133 | + with: |
| 134 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 135 | + password: ${{ secrets.DOCKER_PASSWORD }} |
| 136 | + if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }} |
120 | 137 | - name: Upload image |
121 | | - run: | |
122 | | - docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} |
123 | | - make UBUNTU=${{ matrix.ubuntu-version }} push/cross-${{ matrix.type }}-${{ matrix.pyversion }} |
| 138 | + run: make UBUNTU=${{ matrix.ubuntu-version }} push/cross-${{ matrix.type }}-${{ matrix.pyversion }} |
124 | 139 | if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }} |
0 commit comments