ci: fix artifact upload issue on release build (#2389) #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prebuild Dev Containers | |
on: | |
push: | |
paths: | |
- '.devcontainer/**' | |
- '.github/workflows/prebuild-devcontainers.yml' | |
- rust-toolchain.toml | |
- Dockerfile | |
branches: | |
- master | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build and push devcontainer | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 240 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Node.JS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install skopeo | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y skopeo | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
use: true | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: dashpay | |
password: ${{ secrets.GHCR_TOKEN }} | |
- name: Build and push Platform devcontainer | |
uses: devcontainers/[email protected] | |
with: | |
imageName: ghcr.io/dashpay/platform/devcontainer | |
imageTag: 0.1.0 | |
platform: linux/amd64,linux/arm64 | |
configFile: .devcontainer/devcontainer-build.json | |
push: always | |
cacheFrom: ghcr.io/dashpay/platform/devcontainer |