Skip to content

Commit

Permalink
Merge pull request #42 from heyhusen/bugfix/cannot-pull-docker-image
Browse files Browse the repository at this point in the history
fix: can't pull docker image
  • Loading branch information
heyhusen committed Feb 18, 2024
2 parents 5e383b1 + f7376ab commit 9fd24ca
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cat action.yml
- name: Get sample PKGBUILD
run: wget https://github.com/hapakaien/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD
run: wget https://github.com/${{ github.repository_owner }}/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD

- name: Running test
uses: ./
Expand Down Expand Up @@ -101,17 +101,17 @@ jobs:
uses: actions/checkout@v4

- name: Get sample PKGBUILD
run: wget https://github.com/hapakaien/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD
run: wget https://github.com/${{ github.repository_owner }}/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD

- name: Update action.yml to use edge tagged container image
if: github.ref == 'refs/heads/main'
run: |
REPOSITORY_OWNER=${{ github.repository_owner }}
REPOSITORY_OWNER=$(echo $REPOSITORY_OWNER | tr '[:upper:]' '[:lower:]')
REPOSITORY_NAME=${{ github.event.repository.name }}
REPOSITORY_NAME=$(echo $REPOSITORY_NAME | tr '[:upper:]' '[:lower:]')
sed -i "s/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${REPOSITORY_OWNER}\/${REPOSITORY_NAME}\:edge\"/" action.yml
cat action.yml
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Can't pull docker image

## [2.2.0] - 2022-08-05

### Added
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Arch Linux's package tools action

[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/hapakaien/archlinux-package-action/CI?label=CI&style=flat-square)](https://github.com/hapakaien/archlinux-package-action/actions) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/hapakaien/archlinux-package-action?style=flat-square)](https://github.com/hapakaien/archlinux-package-action/releases) [![GitHub](https://img.shields.io/github/license/hapakaien/archlinux-package-action?style=flat-square)](./LICENSE)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/heyhusen/archlinux-package-action/main.yml?label=CI&style=flat-square)](https://github.com/heyhusen/archlinux-package-action/actions) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/heyhusen/archlinux-package-action?style=flat-square)](https://github.com/heyhusen/archlinux-package-action/releases) [![GitHub](https://img.shields.io/github/license/heyhusen/archlinux-package-action?style=flat-square)](./LICENSE)

This action allows running tools needed for creating Arch Linux (and AUR) package.
Here's what this action can do:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
uses: actions/checkout@v2

- name: Validate package
uses: hapakaien/archlinux-package-action@v2
uses: heyhusen/archlinux-package-action@v2
```

#### 2. Only generate .SRCINFO
Expand All @@ -74,7 +74,7 @@ jobs:
uses: actions/checkout@v2

- name: Validate package
uses: hapakaien/archlinux-package-action@v2
uses: heyhusen/archlinux-package-action@v2
with:
flags: ''
namcap: false
Expand All @@ -98,7 +98,7 @@ jobs:
uses: actions/checkout@v2

- name: Validate package
uses: hapakaien/archlinux-package-action@v2
uses: heyhusen/archlinux-package-action@v2
with:
flags: ''
namcap: false
Expand All @@ -122,7 +122,7 @@ jobs:
uses: actions/checkout@v2

- name: Validate package
uses: hapakaien/archlinux-package-action@v2
uses: heyhusen/archlinux-package-action@v2
with:
path: package
flags: '-si --noconfirm'
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
name: "Arch Linux's package action"
description: "GitHub Action to run Arch Linux's package tools"
author: 'hapakaien'
author: 'heyhusen'
branding:
icon: 'package'
color: 'blue'
Expand Down Expand Up @@ -46,7 +46,7 @@ inputs:

runs:
using: 'docker'
image: 'docker://ghcr.io/hapakaien/archlinux-package-action:2'
image: 'docker://ghcr.io/heyhusen/archlinux-package-action:2'
args:
- ${{ inputs.path }}
- ${{ inputs.pkgver }}
Expand Down

0 comments on commit 9fd24ca

Please sign in to comment.