|
94 | 94 | gameservermanagers/linuxgsm:ubuntu-20.04 |
95 | 95 | ghcr.io/gameservermanagers/linuxgsm:ubuntu-20.04 |
96 | 96 |
|
97 | | - build-ubuntu-1804: |
98 | | - name: Build Ubuntu 18.04 |
99 | | - runs-on: ubuntu-latest |
100 | | - steps: |
101 | | - - name: Checkout |
102 | | - uses: actions/checkout@v4 |
103 | | - |
104 | | - - name: Setup QEMU |
105 | | - uses: docker/setup-qemu-action@v3 |
106 | | - |
107 | | - - name: Setup Docker Buildx |
108 | | - uses: docker/setup-buildx-action@v3.0.0 |
109 | | - |
110 | | - - name: Build |
111 | | - run: docker build -t gameservermanagers/linuxgsm:ubuntu-18.04 -f ./Dockerfile.ubuntu-1804 . |
112 | | - |
113 | | - - name: Login to DockerHub |
114 | | - uses: docker/login-action@v3.0.0 |
115 | | - with: |
116 | | - username: ${{ secrets.DOCKER_HUB_USERNAME }} |
117 | | - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} |
118 | | - |
119 | | - - name: Login to GitHub Container Registry |
120 | | - uses: docker/login-action@v3.0.0 |
121 | | - with: |
122 | | - registry: ghcr.io |
123 | | - username: ${{ github.actor }} |
124 | | - password: ${{ secrets.GITHUB_TOKEN }} |
125 | | - |
126 | | - - name: Build and push (Ubuntu 18.04) |
127 | | - uses: docker/build-push-action@v5.1.0 |
128 | | - with: |
129 | | - context: . |
130 | | - file: ./Dockerfile.ubuntu-1804 |
131 | | - platforms: linux/amd64 |
132 | | - push: true |
133 | | - tags: | |
134 | | - gameservermanagers/linuxgsm:ubuntu-18.04 |
135 | | - ghcr.io/gameservermanagers/linuxgsm:ubuntu-18.04 |
136 | | -
|
137 | 97 | package-cleanup: |
138 | 98 | name: Cleanup Old GitHub Packages |
139 | | - needs: [ build-ubuntu-1804, build-ubuntu-2004, build-ubuntu-2204 ] |
| 99 | + needs: [ build-ubuntu-2004, build-ubuntu-2204 ] |
140 | 100 | runs-on: ubuntu-latest |
141 | 101 | steps: |
142 | 102 | - name: Delete Package Versions |
|
0 commit comments