Skip to content

Commit

Permalink
fix: docker pull step
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed Jul 17, 2024
1 parent 869d0a5 commit 48706c8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/dockers-image-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: "Sync Docker image"
name: "Sync Docker image from Docker Hub to GHCR"
on:
# TODO: The following events are for debugging purposes so I will remove them before merging.
pull_request:
Expand All @@ -29,8 +29,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context



ubuntu-devel:
runs-on: ubuntu-latest

strategy:
matrix:
# platforms: [linux/amd64, linux/arm/v7, linux/arm64/v8]
platforms: [linux/amd64]

steps:
- uses: actions/checkout@v4
- name: Set Git config
Expand Down Expand Up @@ -59,3 +68,8 @@ jobs:
# password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.PACKAGE_USER }}
password: ${{ secrets.PACKAGE_TOKEN }}
- name: Pull Docker image from Docker Hub
run: |
docker pull ubuntu:devel-${TARGET_PLATFORM}
env:
TARGET_PLATFORM: ${{ matrix.platforms }}

0 comments on commit 48706c8

Please sign in to comment.