Skip to content

Commit

Permalink
Updated Docker Image CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanz committed Sep 23, 2022
1 parent 8e072e7 commit f5cd6f0
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Checkout submodules
shell: bash
Expand All @@ -24,8 +24,24 @@ jobs:
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Create dummy config
- name: Create dummy config
run: echo '{}' > src/assets/config.json

- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: polkascan/explorer-ui:latest

0 comments on commit f5cd6f0

Please sign in to comment.