Skip to content

Commit

Permalink
remove workflow for devcontainer push
Browse files Browse the repository at this point in the history
  • Loading branch information
clearbluejar committed Jan 10, 2024
1 parent 289c1d4 commit cd3b09b
Showing 1 changed file with 66 additions and 66 deletions.
132 changes: 66 additions & 66 deletions .github/workflows/build-and-push-devcontainer.yml
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
name: 'build-and-push-devcontainer'
on: # rebuild when devcontainer is updated
push:
paths:
- '.devcontainer/**'
branches:
- main
workflow_dispatch:
# name: 'build-and-push-devcontainer'
# on: # rebuild when devcontainer is updated
# push:
# paths:
# - '.devcontainer/**'
# branches:
# - main
# workflow_dispatch:

jobs:
build-pypi-latest-push-docker:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
# jobs:
# build-pypi-latest-push-docker:
# runs-on: ubuntu-latest
# permissions:
# packages: write
# contents: read
# steps:

- name: Checkout (GitHub)
uses: actions/checkout@v3
# - name: Checkout (GitHub)
# uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3
# - name: Set up Python
# uses: actions/setup-python@v3
# with:
# python-version: 3

- name: Get Version For Tag
id: get_version
run: |
pip install ghidrecomp
version=$(ghidrecomp -v)
echo "ghidrecomp_ver=$version" >> $GITHUB_OUTPUT
echo $ghidrecomp_ver
# - name: Get Version For Tag
# id: get_version
# run: |
# pip install ghidrecomp
# version=$(ghidrecomp -v)
# echo "ghidrecomp_ver=$version" >> $GITHUB_OUTPUT
# echo $ghidrecomp_ver

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@v4
# with:
# images: |
# ${{ github.repository }}
# ghcr.io/${{ github.repository }}

- name: Set up QEMU for multi-architecture builds
uses: docker/setup-qemu-action@v2
# - name: Set up QEMU for multi-architecture builds
# uses: docker/setup-qemu-action@v2

- name: Setup Docker buildx for multi-architecture builds
uses: docker/setup-buildx-action@v2
with:
use: true
# - name: Setup Docker buildx for multi-architecture builds
# uses: docker/setup-buildx-action@v2
# with:
# use: true

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Docker Login
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push ghidrecomp Docker image
uses: docker/build-push-action@v4
with:
context: .devcontainer
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ github.repository }}
${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ steps.get_version.outputs.ghidrecomp_ver}}
ghcr.io/${{ github.repository }}:latest
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
labels: ${{ steps.meta.outputs.labels }}
# - name: Build and push ghidrecomp Docker image
# uses: docker/build-push-action@v4
# with:
# context: .devcontainer
# push: ${{ github.event_name != 'pull_request' }}
# tags: |
# ${{ github.repository }}
# ${{ github.repository }}:latest
# ghcr.io/${{ github.repository }}:${{ steps.get_version.outputs.ghidrecomp_ver}}
# ghcr.io/${{ github.repository }}:latest
# platforms: linux/amd64,linux/arm64
# cache-from: type=gha
# cache-to: type=gha,mode=max
# labels: ${{ steps.meta.outputs.labels }}

0 comments on commit cd3b09b

Please sign in to comment.