Merge pull request #45 from heyhusen/bugfix/cannot-pull-docker-image

Bugfix/cannot pull docker image
This commit is contained in:
Husen
2024-09-08 15:52:38 +07:00
committed by GitHub
4 changed files with 21 additions and 17 deletions
+10 -10
View File
@@ -17,7 +17,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Update action.yml to build locally - name: Update action.yml to build locally
run: | run: |
@@ -25,7 +25,7 @@ jobs:
cat action.yml cat action.yml
- name: Get sample PKGBUILD - 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 - name: Running test
uses: ./ uses: ./
@@ -49,7 +49,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Log in to ghcr.io - name: Log in to ghcr.io
uses: redhat-actions/podman-login@v1 uses: redhat-actions/podman-login@v1
@@ -60,7 +60,7 @@ jobs:
- name: OCI metadata - name: OCI metadata
id: metadata id: metadata
uses: docker/metadata-action@v4 uses: docker/metadata-action@v5
with: with:
images: ghcr.io/${{ github.repository }} images: ghcr.io/${{ github.repository }}
tags: | tags: |
@@ -98,20 +98,20 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Get sample PKGBUILD - 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 - name: Update action.yml to use edge tagged container image
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
run: | run: |
REPOSITORY_OWNER=${{ github.repository_owner }} REPOSITORY_OWNER=${{ github.repository_owner }}
REPOSITORY_OWNER=$(echo $REPOSITORY_OWNER | tr '[:upper:]' '[:lower:]') REPOSITORY_OWNER=$(echo $REPOSITORY_OWNER | tr '[:upper:]' '[:lower:]')
REPOSITORY_NAME=${{ github.event.repository.name }} REPOSITORY_NAME=${{ github.event.repository.name }}
REPOSITORY_NAME=$(echo $REPOSITORY_NAME | tr '[:upper:]' '[:lower:]') REPOSITORY_NAME=$(echo $REPOSITORY_NAME | tr '[:upper:]' '[:lower:]')
sed -i "s/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${REPOSITORY_OWNER}\/${REPOSITORY_NAME}\:edge\"/" action.yml sed -i "s/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${REPOSITORY_OWNER}\/${REPOSITORY_NAME}\:edge\"/" action.yml
cat action.yml cat action.yml
@@ -137,11 +137,11 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Get branch/tag names - name: Get branch/tag names
id: branch-name id: branch-name
uses: tj-actions/branch-names@v5 uses: tj-actions/branch-names@v7
with: with:
strip_tag_prefix: "v" strip_tag_prefix: "v"
+4
View File
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Fixed
- Can't pull docker image
## [2.2.0] - 2022-08-05 ## [2.2.0] - 2022-08-05
### Added ### Added
+5 -5
View File
@@ -1,6 +1,6 @@
# Arch Linux's package tools action # 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. This action allows running tools needed for creating Arch Linux (and AUR) package.
Here's what this action can do: Here's what this action can do:
@@ -54,7 +54,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Validate package - name: Validate package
uses: hapakaien/archlinux-package-action@v2 uses: heyhusen/archlinux-package-action@v2
``` ```
#### 2. Only generate .SRCINFO #### 2. Only generate .SRCINFO
@@ -74,7 +74,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Validate package - name: Validate package
uses: hapakaien/archlinux-package-action@v2 uses: heyhusen/archlinux-package-action@v2
with: with:
flags: '' flags: ''
namcap: false namcap: false
@@ -98,7 +98,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Validate package - name: Validate package
uses: hapakaien/archlinux-package-action@v2 uses: heyhusen/archlinux-package-action@v2
with: with:
flags: '' flags: ''
namcap: false namcap: false
@@ -122,7 +122,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Validate package - name: Validate package
uses: hapakaien/archlinux-package-action@v2 uses: heyhusen/archlinux-package-action@v2
with: with:
path: package path: package
flags: '-si --noconfirm' flags: '-si --noconfirm'
+2 -2
View File
@@ -1,7 +1,7 @@
# https://help.github.com/en/articles/metadata-syntax-for-github-actions # https://help.github.com/en/articles/metadata-syntax-for-github-actions
name: "Arch Linux's package action" name: "Arch Linux's package action"
description: "GitHub Action to run Arch Linux's package tools" description: "GitHub Action to run Arch Linux's package tools"
author: 'hapakaien' author: 'heyhusen'
branding: branding:
icon: 'package' icon: 'package'
color: 'blue' color: 'blue'
@@ -46,7 +46,7 @@ inputs:
runs: runs:
using: 'docker' using: 'docker'
image: 'docker://ghcr.io/hapakaien/archlinux-package-action:2' image: 'docker://ghcr.io/heyhusen/archlinux-package-action:2'
args: args:
- ${{ inputs.path }} - ${{ inputs.path }}
- ${{ inputs.pkgver }} - ${{ inputs.pkgver }}